* bogus codegen with static opAssign() usage *
Walter Bright
newshound at digitalmars.com
Mon Feb 19 12:24:48 PST 2007
kris wrote:
> The syntax, however, is very clean. Importantly, it supports the
> unification or /centralization/ of all those 'new' invocations. I'd go
> so far as to say such a syntax could represent a bridge between OO and
> scripting:
>
> ----
> String s = "mystring";
> ----
>
> ----
> File f = "/foo/bar.d";
> ----
>
> ----
> Regex r = "^(.*)$";
> ----
>
> There's a fairly wide range of simple applicability for this kinda'
> thing. Would be great if static opAssign() could support this, or some
> other operator were enabled?
>
> How about it?
I don't get it. Exactly what transformation are you looking for?
More information about the Digitalmars-d-bugs
mailing list