I guess you're trying to achieve 

f =: >:f           NB. increment f

I also guess you've read about hooks and assumed that

(=: >:) f

will be parsed as 

f =: >: f        

which is what you require.

The reason it doesn't work is that =: is a "copula" (assignment)
and not a verb.

Only verbs can be used in hooks.

> Date: Wed, 21 Apr 2010 11:33:45 -0400
> From: rjkub...@gmail.com
> To: programming@jsoftware.com
> Subject: [Jprogramming] f += 1
> 
>    f=:3
>    (=: >:) f
> |syntax error
> |   (=:>:)f
> 
> Why is this not allowed?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
                                          
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
Do you have a story that started on Hotmail? Tell us now
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to