Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10168 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27377 invoked by uid 1010); 29 May 2004 08:03:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27353 invoked from network); 29 May 2004 08:03:43 -0000 Received: from unknown (HELO spawn.leetspeak.org) (217.28.101.185) by pb1.pair.com with SMTP; 29 May 2004 08:03:43 -0000 Received: (qmail 22106 invoked from network); 29 May 2004 10:04:09 +0200 Received: from pd9e5571f.dip.t-dialin.net (HELO ?192.168.1.16?) (cm@217.229.87.31) by molly.zwonet.de with AES256-SHA encrypted SMTP; 29 May 2004 10:04:09 +0200 Message-ID: <40B843DA.3080403@leetspeak.org> Date: Sat, 29 May 2004 10:03:38 +0200 User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en MIME-Version: 1.0 To: internals@lists.php.net References: <40B76426.8080107@php.net> <40B7A984.6070702@actcom.net.il> <40B7B4EB.4080208@php.net> <40B82E44.2000409@actcom.net.il> In-Reply-To: <40B82E44.2000409@actcom.net.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] switch labels in sub-blocks From: cm@leetspeak.org (Michael Walter) Ilya Sher wrote: > 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. It's an unrolled loop. See http://www.lysator.liu.se/c/duffs-device.html for more information for more elaboration from the author (google works for you, too, btw). Cheers, Michael