My programs issues
Antonio
antonio at abrevia.net
Fri Aug 12 07:02:32 UTC 2022
On Wednesday, 10 August 2022 at 13:13:20 UTC, Adam D Ruppe wrote:
> On Wednesday, 10 August 2022 at 12:36:42 UTC, pascal111 wrote:
>> 1) I used "exit()" from "core.stdc.stdlib;" module, but
>> someone can say this isn't the D way to exit the program.
>
> It is better to simply return a value from main instead.
>
>> 2) I used "goto", I heard from someone before that using
>> "goto" isn't good programming feature.
>
> Don't listen to people who are wrong.
"goto" is a bad "structured programming" feature, but not a bad
programming feature.
More information about the Digitalmars-d-learn
mailing list