real beginner question about D's web site?

Adam D. Ruppe destructionator at gmail.com
Sun Jan 24 20:14:53 UTC 2021


On Sunday, 24 January 2021 at 20:05:47 UTC, WhatMeWorry wrote:
> mentions the $ signs, as well as the $1 and $3.

See point 4 here:

https://dlang.org/spec/ddoc.html#macros


$(THING ...)

is a macro invocation. Inside the macro definition, $0 is the 
full text represented by "..." here. Then $1 is the text up to 
the first comma, $2 text from first to second comma, etc.


More information about the Digitalmars-d-learn mailing list