Andrei's interface requests

Robert Jacques sandford at jhu.edu
Sat Apr 4 12:46:45 PDT 2009


On Sat, 04 Apr 2009 15:38:03 -0400, grauzone <none at example.net> wrote:
> bearophile wrote:
>> Yigal Chripun:
>>> Also, I don't understand why D needs a separate syntax for primitive  
>>> types.
>>  Generally D can work some more in the direction of unifying primitive  
>> types and objects. Some of it can be done with no performance price to  
>> pay.
>
> Like which?
>
>> Bye,
>> bearophile

One example is fixed length arrays, which only generate a field for array  
length when converted to dynamic arrays. Similarly, structs with  
interfaces would not need a pointer to their vtable in the struct, it (the  
pointer, not the vtable) would be created when converted to an interface.




More information about the Digitalmars-d mailing list