A tutorial on D templates

Philippe Sigaud philippe.sigaud at gmail.com
Sat Jan 14 13:00:59 PST 2012


>> Maybe I'll write a small script to extract code samples and compile
>> them. Do you have anything like this for TPDL?
>
>
> Emailed.

Got it, thanks a lot!

>> I have a problem with implicit main() and/or presenting in one sample
>> code that should be in the global scope and some that must be put into
>> a main.
>
>
> Yah, I defined several LaTeX environments and a little syntax for that. I
> also arranged to ignore "..." when it appears alone on a line. Overall it
> was an effort well worth it.

I'll do the scaffolding.


>> I wondered whether I should present only 'compile-as-shown' examples,
>> which means putting import statements and void main() {/* some code
>> */} everywhere.
>
>
> Define distinct environments for stuff that must be top level vs. stuff that
> must be wrapped in main or unittest.

OK.


More information about the Digitalmars-d-announce mailing list