Anonymous user
Object serialization: Difference between revisions
→{{header|Tcl}}: Converted to right template for known status of item
m (→{{header|Tcl}}: marked with needs-review ({ { incomplete } } also for tasks?)) |
(→{{header|Tcl}}: Converted to right template for known status of item) |
||
Line 682:
=={{header|Tcl}}==
{{incorrect|tcl|In particular, it is known to be incomplete; more will be forthcoming in a few days...}}
A limited solution to serialize the class name and scalar member variables in TclOO:
<lang Tcl>define oo::object method serialize {{pat *}} {
set res [list class [info object class [self]]]
|