Make dur a property?
Adam D. Ruppe
destructionator at gmail.com
Wed Jan 23 11:39:17 PST 2013
On Wednesday, 23 January 2013 at 19:29:44 UTC, Nick Sabalausky
wrote:
> int foo() {...}
> int delegate() {...} bar;
>
> auto x = foo; // call it
> auto y = bar; // don't call it
I don't have a problem with that because delegates and functions
are different beasts anyway. For one major example, you can't
rebind a function, but you can rebind a delegate, so "bar" has a
meaning that "foo" doesn't (and &bar and &foo are different
beasts too, one is address of a (rebindable) pointer, the other
is address of a function, so they won't match up either).
More information about the Digitalmars-d
mailing list