A TclOO question

Liste des GroupesRevenir à cl tcl 
Sujet : A TclOO question
De : hgiese (at) *nospam* ratiosoft.com (Helmut Giese)
Groupes : comp.lang.tcl
Date : 16. Jul 2024, 14:26:20
Autres entêtes
Organisation : ratiosoft
Message-ID : <47rc9jdmepbpbfa7l64872m7nujuvs2g4h@4ax.com>
User-Agent : Forte Free Agent 1.93/32.576 English (American)
Hello out there ,
I found XOTclLight (https://github.com/xdobry/xotcl-light ) which is
an XOTcl compatible implementation via TclOO. My hope was that with it
XOTcl's mysterious error messages would be traceable since the calls
wouldn't be buried in XOTcl's binary.
Alas, it errored out with
may not change classes into an instance of themselves
on the line
oo::objdefine Class class Class

While this intuitively makes sense I wonder:
1) Maybe TclOO's syntax has changed since then (2015)? After all, a
man who knows enough about OO systems to implement one in terms of the
other isn't likely to release a package which is evidently unusable.
2) What does the statement cited above try to achieve? And, most
important, what magic can achieve it?

I figured that it attempted to replace the XOTcl command 'Class' with
its own definition so I changed in the script and the call above
'Class'  to 'NewClass' - but to no avail.

Any idea or help will be greatly appreciated
Helmut

Date Sujet#  Auteur
16 Jul 24 o A TclOO question1Helmut Giese

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal