On Friday, 12 August 2022 at 07:02:32 UTC, Antonio wrote:
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.

"structured programming" solved that with "while-like" loops.

Reply via email to