Jump to content

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...}}
{{needs-review|tcl}}
A limited solution to serialize the class name and scalar member variables in TclOO:
<!-- This is known to be an incomplete solution; more to come... -->
<lang Tcl>define oo::object method serialize {{pat *}} {
set res [list class [info object class [self]]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.