in reply to Re: Re: Duff's Device
in thread Duff's Device
It's bizzare, particularly in the goto EXPR form, because there is no way to calculate the jump until runtime. Depending on the complexity of EXPR, code maintnance could be hopeless. Also, this causes a linear scan of your code, so your jump will be slower (in the worst case) if your code base is larger. Lord forbid if Hitler had ever discovered the sinister power behind goto EXPR (I claim exemption from Godwin's law).
Of course, goto &SUB is a totally different matter.
----
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Duff's Device
by TimToady (Parson) on Feb 24, 2004 at 17:16 UTC | |
Re: Duff's Device
by Abigail-II (Bishop) on Feb 24, 2004 at 17:15 UTC | |
by TimToady (Parson) on Feb 25, 2004 at 00:32 UTC |