Thoughts on replacement languages (Reddit + D)

francesco.cattoglio via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 06:34:40 PST 2015


On Monday, 12 January 2015 at 13:27:55 UTC, Adam D. Ruppe wrote:
> On Monday, 12 January 2015 at 11:04:45 UTC, francesco.cattoglio 
> wrote:
>> When the GC collects them the destructor runs close(), which 
>> in turn calls for some allocation (e.g: allocates for a string 
>> to send to the logger),
>
> Do you have to log? I've never had a problem calling C free 
> functions in a class destructor in D.

Not me personally, but gfm does that, and I'm not going to remove 
all the logging from the destructors :P
I know the log example is weak, but I really think this issue is 
still valid.
To be completely honest, it is my only real gripe with D.


More information about the Digitalmars-d mailing list