Is returning void functions inside void functions a feature or an artifact?
Paul Backus
snarwin at gmail.com
Tue Aug 3 11:56:37 UTC 2021
On Tuesday, 3 August 2021 at 10:28:53 UTC, Rekel wrote:
> On Tuesday, 3 August 2021 at 00:53:43 UTC, user1234 wrote:
>> You got the answer in another reply but here is a bit of more
>> fun:
>>
>> ```d
>> void main() {
>> return cast(void) 1;
>> }
>> ```
>
> What does casting to void do? Does it just ignore whatever
> follows it?
Yes.
More information about the Digitalmars-d-learn
mailing list