Pascal Jasmin wrote:
> working with classes does get messy... for instance you can't do
> this inside a constructor,
> 
> o =. conew 'myclass'
> mymethod__o
> return.
>
> maybe extra syntax would help. (triple _)
What are you trying to do?
It looks like you are creating yet another object, and then trying
to reference a method in that object.
This doesn't make sense to me, since -- if this is in a constructor
-- why would you be creating a different object, if you're not going
to retain a reference to it?
Also, the value of the create method is ignored, at best a single
word on a line by itself will simply refer to some other value.
More likely, 'mymethod__o' refers to a verb -- which is even less
useful on a line by itself in another verb.
(Perhaps, seeing what I make of that, or don't, you can provide
an explanation of what it was you really wanted to accomplish?)
Thanks,
-- 
Raul

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

Reply via email to