Probably best to brake the operation down into smaller operations and see
where the actual problem is:

    datesperyear=. 365
    master=. datesperyear 3 $ 0  NB. this gives syntax error
|syntax error
|   master=.    datesperyear 3$0
     datesperyear 3 $ 0  NB. this gives syntax error
|syntax error
|       datesperyear 3$0
      3 $ 0
0 0 0
     datesperyear 3
|syntax error
|       datesperyear 3
  master=. 365 3 $ 0           NB. this does not give error
   master
...
0 0 0
     datesperyear, 3
365 3


2011/11/3 PackRat <[email protected]>

> Why does "shape" not accept assigned values, as in the following:
>
>   datesperyear=. 365
>
>   master=. datesperyear 3 $ 0  NB. this gives syntax error
>   master=. 365 3 $ 0           NB. this does not give error
>
>   buckets=. datesperyear $ 0   NB. these do not give errors
>   counts=. datesperyear $ 0
>
> This means I have to explicitly specify numeric values in numerous
> places rather than use a single assigned value multiple times.
>
> Thanks in advance for any explanations!
>
>
> Harvey
>
> ----------------------------------------------------------------------
> 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