My programs issues

Adam D Ruppe destructionator at gmail.com
Wed Aug 10 13:13:20 UTC 2022


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.


More information about the Digitalmars-d-learn mailing list