Coolest D features

Craig Black cblack at ara.com
Wed Dec 27 13:00:10 PST 2006


"Jeff Nowakowski" <jeff at dilacero.org> wrote in message 
news:emum7l$21kg$1 at digitaldaemon.com...
> Walter Bright wrote:
>> I think the problem is that Java is just lacking in some needed 
>> features - like a full set of basic types, simple aggregates, out 
>> parameters, etc. The alternatives are computationally expensive, and so 
>> the optimizer has a lot of work to do to reverse engineer them and figure 
>> out that all the programmer was doing was a workaround for a POD stack 
>> aggregate.
>
> Could you expand on the above items?  What basic types are missing? Does a 
> "simple aggregate" refer to structs/tuples?  What does POD stand for, and 
> what is a POD stack aggregate?  Could you show a code example in D that 
> performs badly in Java?  Pardon my ignorance.
>
> -Jeff

Unsigned types are missing in Java.  POD means plain old data.  Walter is 
talking about D's structs which are instantiated on the stack instead of the 
heap.  Currently, Java has no way of allocating an aggregate data structure 
on the stack, although I hear that Sun is working on it.

-Craig 





More information about the Digitalmars-d mailing list