Hmm...

I did not know that you could type two in a row like this before.

I did notice a peculiarity in ijx window in JHS while copying to it that
after copying and pressing enter the first line disappears so I needed to
copy one line above what I wanted in order to get it all.

That is when I copied    (0 : 0) ; (0 : 0) as the first line in the copy it
came over after paste but pressing enter it disappeared from the log so I
needed to copy the blank line above it too in order to be able to use the
 (0 : 0) ; (0 : 0) line.

I have noticed this before but have not reported it before.

I tried to use 3 and it is a bit strange

      a=.(3 : 0) ; (3 : 0)
2+3
)
y+4
)
   a
3 : 'y+4' ; 3 : '2+3'
   a 44
┌──┬─┐
│48│5│
└──┴─┘


2011/10/30 Henry Rich <[email protected]>

> Not really a nested definition, but a sequential one.  When the
> interpreter sees x : 0, it drops what it's doing and reads lines from
> the input.  When it finds ), it resumes what it was doing.
>
>    (0 : 0) ; (0 : 0)
> line 1
> )
> line 2
> line 3
> )
> ┌──────────────┬───────┐
> │line 2 line 3 │line 1 │
> └──────────────┴───────┘
>
> Henry Rich
>
> On 10/30/2011 9:11 AM, Brian Schott wrote:
> > Ric,
> >
> > Thank you for posting these links. In the first link is a verb named
> > parameterizedVerb_ddp_ and an adverb name defn_ddp_ created by Dan in
> >
> http://www.jsoftware.com/svn/DanBron/trunk/environment/parameterized_verbs.ijs
> > . It looks to me as if Dan has found a way to nest two explicit
> > definitions there because at that link under the section "EXAMPLE
> > SECTION", the verb parameterizedVerb has two separate line beginning
> > with a single paren.
> >
> > Could someone verify that this is or is not a nested definition and if
> > so explain how it is done, please?
> >
> > On Sun, Oct 30, 2011 at 1:18 AM, Ric Sherlock<[email protected]>  wrote:
> >>
> >> http://www.jsoftware.com/jwiki/Guides/Multiple%20Verb%20Arguments
> >> http://www.jsoftware.com/jwiki/Guides/Defining%20Verbs
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: [email protected]
gsm: +3546985532
twitter: @flugfiskur
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