On Sat, 04 Apr 2009 15:38:03 -0400, grauzone <[email protected]> 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.