months=: adverb def 'm'
  years=: adverb def 'm*12'
  2 years + 3 months
27
   9!:14''
j601/beta/2006-02-27/10:25
   9!:12''
5


2006/4/2, Markus Schmidt-Groettrup <[EMAIL PROTECTED]>:
>
> 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
>



--
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf, Þerneyjarsund 23,
Skype: gosiminn, gsm: +3546985532
801 Grímsnes ,t-póst: [EMAIL PROTECTED]
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.

         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |
  (`-.  '--.)
   `. )----'
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to