[Xotcl] alloc not an instproc

Kristoffer Lawson setok at fishpool.com
Sat Jan 13 16:03:06 CET 2001


According to the XOTcl language reference the alloc method is an instproc
of Class, yet:

% Class Foo
Foo
% Foo alloc bar
alloc
%

Ie. the instance of Class called Foo does not recognise the alloc method,
and creates an object named alloc instead. If alloc is actually a proc of
Class, is there any way to avoid the normal create procedure in the code
above?

         -     ---------- = = ---------//--+
         |    /     Kristoffer Lawson      |  www.fishpool.fi|.com
         +-> |    setok at fishpool.com       |  - - --+------
             |-- Fishpool Creations Ltd - /         |
             +-------- = - - - = ---------      /~setok/





More information about the Xotcl mailing list