Mar-01-2021, 02:21 AM
(Feb-09-2021, 07:11 AM)Gribouillis Wrote: The drawback of returning an error code is that it forces the caller to check the error code
or forces the caller to explicitly pass the error code back to its caller. BTDT way too often in C. many reasons to prefer exceptions.
(Feb-09-2021, 07:11 AM)Gribouillis Wrote: Nothing is simpler than writing your own exceptionnow you're having me wonder what i can put in place of pass in your example.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.