2008/12/9 Igor Zhuravlov <[EMAIL PROTECTED]>:
> 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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to