Calling objects (2)
Again, arguments are converted to Java types
$cal set 1998 8 15 14 0[$cal getTime] toString
Tue Sep 15 14:00:00 PDT 1998
The result from the getTime call is still referenced by the Tcl interpreter, so it isn’t garbage-collected
Previous slide
Next slide
Back to first slide
View graphic version