new should lower to a template function call

Stefan Koch uplink.coder at googlemail.com
Sat Jul 25 11:03:55 UTC 2020


On Friday, 24 July 2020 at 18:45:39 UTC, Andrei Alexandrescu 
wrote:
> On 7/24/20 2:07 PM, H. S. Teoh wrote:
>
>> I think part of the solution is to adopt Stefan's proposed type
>> functions instead of shoe-horning everything into templates. 
>> Just
>> because templates are Turing-complete does not necessarily 
>> mean they are
>> practical for implementing every computation. A lot of the 
>> druntime
>> templates / prospective druntime templates could possibly be 
>> implemented
>> as type functions rather than template functions.
>
> That'd be interesting. In the meantime, there's so much to do 
> with the current template offering it hurts.

You (and everyone else) are very welcome to help with the type 
functions.



More information about the Digitalmars-d mailing list