Compile-Time Function Parameters That Aren't Types?

Kyle Ingraham kyle at kyleingraham.com
Thu Feb 25 23:07:59 UTC 2021


On Wednesday, 24 February 2021 at 20:15:08 UTC, Ali Çehreli wrote:
> On 2/23/21 7:52 PM, Kyle Ingraham wrote:
>
>> Where would one find information on this
>
> There are Point and Polygon struct templates on the following 
> page where one can pick e.g. the dimension (e.g. three 
> dimensional space) by a size_t template parameter.
>
>
> http://ddili.org/ders/d.en/templates_more.html#ix_templates_more.value%20template%20parameter
>
> Ali

Thank you very much Ali. This is another great example. Your book 
has been most helpful!


More information about the Digitalmars-d-learn mailing list