Aaron Sloman See text for reply address wrote:
> [...]
> More precisely: it takes a procedure which requires NO
> arguments, and every time it calls produces one result. Those
> are often called "generator" procedures. Examples are itemread,
> readline, charin, closures of random, e.g. random(%100%) ....
readline - that makes it clear.
[Further comprehensive & appreciated explanation cut for space]
> It is not at all clear what you would want a procedure that
> takes an argument to do with them in creating a dynamic list.
> See the random example above.
Hm. I'm not at all sure a dynamic list would help. I simply wish to
have a structure indexable - by integer or string - of unspecified
size, so that it can be added to when needed. In Perl, an @array or
%hash would do the job. It seems - and I'm hoping for correction
here! - that in POP, 'array procedures mishap if any of their
subscript arguments is not in the appropriate range'. Is this a
hang-up from non-AI scripting languages, or a result of not having
a grep routine in Win32 to scan the HELP/REF/TEACH files?
Cheers,
Lee
<L Goddard at Sussex>
|