static initialization of structs
    Rob T 
    rob at ucora.com
       
    Sat Dec  1 13:11:16 PST 2012
    
    
  
On Saturday, 1 December 2012 at 18:36:35 UTC, Dan wrote:
> In the thread on compiling DSSS and build tools someone 
> mentioned a format for initializing environment data of a 
> struct:
>
>   Environment env = {
>        tests: true,
>        verbose: true,
>        importDirs: ["../deimos"]
>   }
>
> A followup comment says "isn't that syntax intended to be 
> deprecated?"
>
> Is this accurate - that the nice json-esque syntax for 
> initializing structs will be deprecated? If so, can someone 
> give color on why/when?
>
> Also, for this and other issues regarding features going away, 
> is there a central place where these items are being tracked? 
> How can we know what is on the chopping block?
>
> Thanks
> Dan
There's another thread very much related to your question,
Breaking D2 language/spec changes with D1 being discontinued in a 
month
http://forum.dlang.org/thread/svkdolzzcqotdmifcawh@forum.dlang.org
Which resulted in this effort
D Stable Proposal
http://forum.dlang.org/thread/k99coi$1q5e$1@digitalmars.com
There's another thread concerning the way planned depreciations 
are handled by the compiler, but I'm not sure where that one is. 
Supposedly there's a pending pull request waiting to be approved 
by Walter. The change is intended to significantly improve how 
the compiler treats depreciations, making them much more 
meaningful and useful to the compiler user.
--rt
    
    
More information about the Digitalmars-d-learn
mailing list