Inline imports redivivus

Paul Backus snarwin at gmail.com
Tue Mar 8 22:28:06 UTC 2022


On Monday, 7 March 2022 at 18:45:54 UTC, Ali Çehreli wrote:
> A solution that would allow the following would be interesting:
>
>   bitfields!(int x : 8,
>              int y : 8);
>
> So, we somehow specify at template definition that two (or 
> three?) parameters (e.g. int and x) can be specified without a 
> comma and perhaps anything after ':' are UDAs of that parameter?

There's always strings:

     bitfields!("int x : 8",
                "int y : 8");


More information about the Digitalmars-d mailing list