[Inquiry] Re: Theme One Program -- Commentary -- Fore

Jon Awbrey jawbrey at att.net
Wed Jan 19 14:04:33 CST 2005


o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o

TOP.  Commentary Note 21

o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o

Fore.

Fore is a transformation of ideas that operates on the
assumption that its argument idea references a form in
a cycle of forms.  Its functional value is the address
of the form that is immediately prior to this referent
form, as determined by the cyclic ordering in question.

In this setting a "cycle of forms" will always refer to a "by-cycle of forms",
that is, a finite set of forms that are linked by way of their 'by' addresses,
as illustrated in the following figure, where 'this' is the intended argument
and fore (this) is the computed result:

 o-------------------------------------------------o
 |   o-----o   o-----o         o-----o   o-----o   |
 o-->|     |-->|     |-->···-->|     |-->|     |---o
     o-----o   o-----o         o-----o   o-----o
     ^                                   ^
this |                                   | fore (this)
     @                                   @

function fore (this: idea): idea;
var here: idea;
begin
 here := nil;
 if this <> nil then
  begin
   here := this;
   repeat here := next (here)
    until next (here) = this
  end;
 fore := here
end;

o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o
inquiry e-lab: http://stderr.org/pipermail/inquiry/
o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o~~~~~~~~~o



More information about the Inquiry mailing list