goto skips declaration of variable

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 19 01:15:12 PDT 2014


On Tue, 19 Aug 2014 08:04:54 +0000
nrgyzer via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> goto-instruction. The same regards the scoping... it's simply to 
> much overhead.
it's a matter of taste, i think. i myself find 'scope(exit)' excellent,
'cause i'm always keep forgeting to free some resources / restore some
state in "EXIT:" part. ;-)

but i'm not saying that everyone should avoid gotos, and this is
definitely the bug in compiler that should be fixed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140819/659dd4d2/attachment.sig>


More information about the Digitalmars-d-learn mailing list