Template declaration of std.typecons.isTuple in -X JSON file.

monkyyy crazymonkyyy at gmail.com
Wed Jan 15 21:42:39 UTC 2025


On Wednesday, 15 January 2025 at 21:40:19 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> On 16/01/2025 10:36 AM, monkyyy wrote:
>> On Wednesday, 15 January 2025 at 20:06:19 UTC, realhet wrote:
>>>
>>> These are the mysterious parts of the language, I like this 
>>> stuff, even I can't understand.
>> 
>> it should also be noted that trait compiles is not actually a 
>> compile check, its more like "parses"
>
> It does do semantic analysis, if it passes, it should compile 
> fully (note it may not link or run on target hardware).
>
> https://github.com/dlang/dmd/blob/ace0e6329521819d8fe51e42ae37a23782f25707/compiler/src/dmd/traits.d#L1826

that std.traits.compiles isnt just a __traits(compiles,... call 
is evidence of my point


More information about the Digitalmars-d-learn mailing list