No registered users in community xowiki
in last 10 minutes
in last 10 minutes
Re: [Xotcl] proper way to access xotcl classes
From: Kristoffer Lawson <setok_at_scred.com>
Date: Wed, 7 May 2008 21:15:39 +0300
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/
Date: Wed, 7 May 2008 21:15:39 +0300
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/