[Jprogramming] self-reference in explicit adverb
Raul Miller
rauldmiller at gmail.com
Tue Dec 9 20:27:07 HKT 2008
2008/12/9 Igor Zhuravlov <igor at uic.dvgu.ru>:
> a=: 1 : 0
> '`self realu'=. u
> if. 1 < # y do.
> x self (}. y)
> else.
> x realu y
> end.
> )
>
> v=: v`+ a
Note that you must be sure to avoid changing
the name class of v. (If it were previously a noun,
adverb or conjunction, this would not work right.)
I think this kind of constraint deserves an
explicit comment in the code.
But it is a clean approach.
Thanks,
--
Raul
More information about the Programming
mailing list