TypeFunction example: ImplictConvTargets

foobar foo at bar.com
Tue Oct 6 17:51:25 UTC 2020


On Tuesday, 6 October 2020 at 12:35:15 UTC, Stefan Koch wrote:
> On Tuesday, 6 October 2020 at 11:34:10 UTC, foobar wrote:
>> On Tuesday, 6 October 2020 at 03:50:11 UTC, Stefan Koch wrote:
>>> [...]
>>
>> Actuallly yes.
>> The language changes affect the user. This is a large change 
>> to the language which puts back in the compiler what we do in 
>> libraries. Whoop-de-do.
>> Do type functions do anything new?
>
> It only gives access to what the compiler has to do anyway.
> It gives you an interface to what must exist within.
> You could even say this makes it easier to provide a library 
> implementation by using the compiler as a built-in library.
> No, type functions don't do anything original they mirror how 
> type manipulation works within templates providing a familiar 
> and usable interface.
> It is an explicit goal of mine to have type functions look just 
> like any other D code.

Last time I looked D was a small language but very powerful. It 
innovated and did things you could not do in C++. Now this forum 
has been taken over by beginners who want a big language which 
does the same as before, only differently. Yawn.


More information about the Digitalmars-d mailing list