www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - More literals?

Would it be feasible to implement some aggregate literals
(union, struct, arrays, a-arrays, etc...)
I am aware that array literals are being planned, and aa's have
long been complained about, but haven't heard anything about
structs.

Of course, this is relatively minor, since the implementation is
identical to creating instances of them.

(However, one thing that I _would_ like is "struct {int a; int b;}
foo;" , as this simplifies things a lot in some cases)

-- 
"Unhappy Microsoft customers have a funny way of becoming Linux,
Salesforce.com and Oracle customers." - www.microsoft-watch.com:
"The Year in Review: Microsoft Opens Up"

"Clearly, if I were one of that Predator hunting team, I would file a
complaint with my local member asking why such an unsafe
environment should be allowed to continue, tradition or not."
- http://www.sydneyanglicans.net/culture/watching/alien_vs_predator/
Nov 30 2004