Register based error-handling?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 6 12:06:54 PST 2014


I don't think we should have a language construct for that. It is
possible to pack the returned value in a struct that enforce
error checking. Exception is fine for procedure if they can't do
their job. tryDo as explained before in this thread is also a
common convention to indicate that you'll try do to something and
fail silently.


More information about the Digitalmars-d mailing list