Generality creep

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Mar 28 20:02:17 UTC 2019


On 3/28/19 3:31 PM, H. S. Teoh wrote:
> On Thu, Mar 28, 2019 at 03:23:30PM -0400, destructionator--- via Digitalmars-d wrote:
>> On Thursday, 28 March 2019 at 19:12:40 UTC, H. S. Teoh wrote:
> [...]
>>> Or the GC initialization in rt_init / rt_term.  Or, for that
>>> matter, the initialization code that packages command-line
>>> arguments into a string[] before invoking Dmain.
>>
>> The GC is initialized on the first use.
> 
> Yes, but not calling rt_init still causes a segfault when you try to use
> the GC.  So, we're not quite there yet.

That'd need to be fixed, and it should be possible without disrupting 
clients.

>> Lots of movement in this direction already happened in 2018!
> 
> That's good to know.
> 
> I'm still wondering, though, how we're going to drop druntime while
> still maintain backward compatibility.  Or how we could skip the startup
> code that invokes module ctors and packages command-line args into
> string[].  It would be awesome if we could pull this off, but I don't
> currently see how we could do it without major breakage.

Compiler flag.


More information about the Digitalmars-d mailing list