My programs issues

pascal111 judas.the.messiah.111 at gmail.com
Fri Aug 12 14:12:20 UTC 2022


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.


More information about the Digitalmars-d-learn mailing list