No registered users in community xowiki
in last 10 minutes
in last 10 minutes
Re: [Xotcl] Class unknown -> create is considered harmful
From: Kristoffer Lawson <setok_at_scred.com>
Date: Wed, 7 Jan 2009 17:20:05 +0200
On 7 Jan 2009, at 15:45, Gustaf Neumann wrote:
> i do agree with you, that the default unknown handler for
> classes/metaclasses is harmful. i prefer as well the explicit
> create/new statement for various reasons.
>
> The handler is a heritage from OTcl, and the reason XOTcl
> keeps the heritiage is backward compatibility. Many programs
> simply use unknown....
>
> However, maybe we should mark its usage as deprecated and
> remove it in future versions, such as XOTcl 2.0....
As someone who has stumbled across this as well, I would vote for
deprecation. I always use 'new' anyway.
/ http://www.scred.com/
/ http://www.fishpool.com/~setok/
Date: Wed, 7 Jan 2009 17:20:05 +0200
On 7 Jan 2009, at 15:45, Gustaf Neumann wrote:
> i do agree with you, that the default unknown handler for
> classes/metaclasses is harmful. i prefer as well the explicit
> create/new statement for various reasons.
>
> The handler is a heritage from OTcl, and the reason XOTcl
> keeps the heritiage is backward compatibility. Many programs
> simply use unknown....
>
> However, maybe we should mark its usage as deprecated and
> remove it in future versions, such as XOTcl 2.0....
As someone who has stumbled across this as well, I would vote for
deprecation. I always use 'new' anyway.
/ http://www.scred.com/
/ http://www.fishpool.com/~setok/