druntime redesign

Johan j at j.nl
Tue Mar 17 17:32:37 UTC 2020


On Tuesday, 17 March 2020 at 17:12:39 UTC, IGotD- wrote:
> On Tuesday, 17 March 2020 at 16:25:22 UTC, Johan wrote:
>>
>> Rather than setting the import directory, I think a much nicer 
>> solution is something like this:
>> https://github.com/weka-io/mecca/blob/master/src/mecca/platform/os/package.d
>> This works for different OS types, different CPU types, etc. 
>> And it removes the need to specify a whole list of specific 
>> import directories for each OS/cpu combination in the config 
>> file (please keep LDC crosscompilation in mind).
>>
>> -Johan
>
> How is this different from using version?

It isn't. But it puts `version` in only a few places, instead of 
spread across many different files.
We shouldn't be replacing version, but utilize it.

-Johan



More information about the Digitalmars-d mailing list