Re: switch labels in sub-blocks

From: Date: Sat, 29 May 2004 06:31:32 +0000
Subject: Re: switch labels in sub-blocks
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-10167@lists.php.net to get a copy of this message
Hartmut Holzgraefe wrote:
Ilya Sher wrote:
It looks like using "goto" to me. Messy. That's probably the reason it is not allowed. Or maybe other people like myself failed to understand how it is really useful. Real example from you would help here.
it's a valid performance trick in C Thanks for the info.
http://www.jargon.net/jargonfile/d/Duffsdevice.html I still fail to understand how that is useful.
Please, explain me. _Real_ example is welcome. The example there just puts into *to one item referenced by *from with offset count. (Correct me if I'm wrong) Assuming *to will be replaced with *to++ it will be plain memcpy() without any "interesting" functionality. (Again, correct me if I'm wrong)


« previous php.internals (#10167) next »