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
  • Template declara... realhet via Digitalmars-d-learn
    • Re: Templat... monkyyy via Digitalmars-d-learn
      • Re: Tem... realhet via Digitalmars-d-learn
        • Re:... realhet via Digitalmars-d-learn
          • ... monkyyy via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
              • ... monkyyy via Digitalmars-d-learn
    • Re: Templat... Steven Schveighoffer via Digitalmars-d-learn
      • Re: Tem... realhet via Digitalmars-d-learn
        • Re:... monkyyy via Digitalmars-d-learn
          • ... realhet via Digitalmars-d-learn

Reply via email to