D vs. placement new (for classes) aka why D needs .sizeof and
David B. Held
dheld at codelogicconsulting.com
Sat Apr 14 12:03:05 PDT 2007
Chris Nicholson-Sauls wrote:
> [...]
> Uhm... except that we have them already? Or is this not what you meant:
>
> # interface IToString {
> # public char[] toString () ;
> # }
> #
> # auto obj = new class IToString {
> # public char[] toString () { return "<anonymous class>"; }
> # };
Hmm...that's pretty cool. I guess that is needed for Java
compatibility, huh?
Dave
More information about the Digitalmars-d
mailing list