Hello,

June Kim schrieb:
Hello.

   months=: adverb def 'm'
   years=: adverb def 'm*12'

   2 years + 3 months
27


interesting, but what does happen ? I tried to find out but failed.
When I issue those 3 commands, I get as expected

  months=: adverb def 'm'
  years=: adverb def 'm*12'
  2 years + 3 months
|value error: m
|       m*12

Thanks for enlightment !
Markus
I know there is #. for this kind of calculation but just wanted
experiment this idea of changing the word order.

Could it cause some problems in other cases, ie. could there be
problems if the result of applying an adverb returns something other
than a verb?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to