After retrying (restarting the Jgtk app and loading my class ijs file) I also
cannot reproduce this issue.
Not sure what the cause was. But now my object/class work fine.
Regards.
> Date: Wed, 4 Jun 2014 05:15:55 -0400
> From: [email protected]
> To: [email protected]
> Subject: Re: [Jprogramming] J class error
>
> I cannot reproduce the problem. I have
>
> file 112.ijs:
>
> coclass 'Myclass'
>
> create=: verb define
> px=: 0
> )
> movex=: verb define
> px =:y
> )
>
>
> Then from the console:
>
> load 'C:\Jprograms\temp\112.ijs'
> obj =: conew 'Myclass'
> obj
> +--+
> |31|
> +--+
> create__obj 0
> 0
> movex__obj 2
> 2
>
> Henry Rich
>
> On 6/4/2014 1:55 AM, Jon Hough wrote:
> > Sorry, I didnt explain very well.
> >
> > obj =: conew 'Myclass'
> >
> > create__obj 0
> >
> >
> > This is ok, but
> > movex__obj 2
> >
> > Gives a value error.
> >
> > --- Original Message ---
> >
> > From: "bill lam" <[email protected]>
> > Sent: June 4, 2014 2:30 PM
> > To: [email protected]
> > Subject: Re: [Jprogramming] J class error
> >
> > Without knowing what your is obj, it is difficult to guess, you
> > should provide enough information.
> >
> > Anyways create will be called by conew, users seldom need to
> > call it directly.
> >
> > Ср, 04 июн 2014, Jon Hough написал(а):
> >> This is my class def:
> >>
> >> coclass 'Myclass'
> >>
> >> create=: verb define
> >> px=: 0
> >> )
> >> movex=: verb define
> >> px =:y
> >> )
> >>
> >> However, when I create an instance , I can call create__obj no problem,
> >> but always
> >> movex__obj 2
> >>
> >> Gives me a value error (for any y argument). This seems to indicate my
> >> movex function has a problem, but I cannot find any errors.
> >>
> >> Any help appreciated.
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >
> > --
> > regards,
> > ====================================================
> > GPG key 1024D/4434BAB3 2008-08-24
> > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm