Result Types and void usage

nik via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 15 05:49:12 PDT 2016


On Friday, 15 July 2016 at 11:36:27 UTC, ag0aep6g wrote:
> On 07/15/2016 10:11 AM, nik wrote:
>> [...]
> [...]
>> [...]
>
> void is somewhat special. It can't be used to declare variables 
> or as a parameter type. So you'll have to approach this a bit 
> differently. You also can't have a struct constructor with zero 
> parameters.
>
> [...]

Cool, that's neat and has the syntax I'm looking for.

Thanks for your help

Nik


More information about the Digitalmars-d-learn mailing list