[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] Duff's Device lurking in refer.cpp

From: Ralph Corderoy
Subject: Re: [groff] Duff's Device lurking in refer.cpp
Date: Wed, 27 Jun 2018 13:04:08 +0100

Hi Steffen,

> >     if (strcmp(opt,"-version")==0) {
> >     case 'v': // <-- a gibbon on the syntax tree
> But interesting that you call it Duff's device, i thought that
> exactly refers to a do..while() loop within a switch

Agreed, it's a method of loop unrolling that used case labels against
the `flow' of the other code's structure.
    dict -d jargon "duff's device"

Cheers, Ralph.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]