[Xotcl] proper way to access xotcl classes

Matthew Smith chedderslam at gmail.com
Wed May 7 20:20:18 CEST 2008


Makes sense.  Thank you for the help.

On Wed, May 7, 2008 at 1:15 PM, Kristoffer Lawson <setok at scred.com> wrote:

>
> On 7 May 2008, at 21:09, Matthew Smith wrote:
>
>  Thank you for the help.
> >
> > Now I am getting another error I don't understand.
> >
> > invalid command name "my".
> >
>
> "my" is probably in the xotcl namespace. When I'm coding with XOTcl I
> always start with the following:
>
>
> package require XOTcl
> namespace import xotcl::*
>
> Then I have direct access to all XOTcl commands:
>
> Class Stack
>
> Stack instproc init {} {
>  my instvar things
>  # ...
>
> }
>
>           / http://www.scred.com/
>           / http://www.fishpool.com/~setok/<http://www.fishpool.com/%7Esetok/>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://alice.wu-wien.ac.at/pipermail/xotcl/attachments/20080507/8cd16c16/attachment.html 


More information about the Xotcl mailing list