class extensions

Alexander Panek alexander.panek at brainsware.org
Thu Aug 30 00:01:46 PDT 2007


Bill Baxter wrote:
> [...]
> But Walter seems to think it's ok the way it is.  Given that, I can 
> definitely see how he'd think making a.foo uniformly interchangable with 
> foo(a) makes sense.  I guess with property syntax and this combined 
> we'll have
>    "a.value" == "value(a)" == "value = a"

Oooh it looks like this would be possible to write:

3.times = (int a) { Stdout(a.toUtf8).newline; }

...fun! :D



More information about the Digitalmars-d mailing list