[Jprogramming] self-reference in explicit adverb
Raul Miller
rauldmiller at gmail.com
Fri Dec 5 21:36:53 HKT 2008
On Fri, Dec 5, 2008 at 6:54 AM, Igor Zhuravlov <igor at uic.dvgu.ru> wrote:
> I have the following definition (simplified model):
>
> a=: 1 : 0
> :
> if. 1 < # y do.
> x $: (}. y)
> else.
> x u y
> end.
> )
>
> And I got stack error here:
> 7 + a 1 2 3
> |stack error
> | x $:(}.y)
>
...
> but it's not desirable (more precisely, I've failed to convert it to tacit
> form). I'd like $: in adverb a to be the verb (+ a) or whatever called. Is it
> possible?
Not the way you have this designed.
$: refers to the largest verb containing it, in the current sentence, and an
explicit definition acts as a barrier to tits actions.
If you must have an pure explicit definition, you can use iteration,
with control words.
--
Raul
More information about the Programming
mailing list