[Xotcl] Class unknown -> create is considered harmful
Kristoffer Lawson
setok at scred.com
Wed Jan 7 16:20:05 CET 2009
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/
More information about the Xotcl
mailing list