Error: getenv cannot be interpreted at compile time

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 17 12:24:54 PST 2015


On Tuesday, 17 February 2015 at 20:06:15 UTC, Paul wrote:
> There doesn't seem to be an alternative to using a pointer as 
> it's rather a large struct to pass to functions as is!

yeah, copying is disabled too. The struct isn't big in memory 
terms (it has few actual data members) but since the destructor 
does a bunch of things, you wouldn't want it being called often, 
so a pointer to one made in main is the way to go.


More information about the Digitalmars-d-learn mailing list