Use a proc instead - not quite the same.