> -----Original Message----- > From: Mo DeJong [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 28, 2000 6:51 PM > To: [EMAIL PROTECTED] > Subject: [Tcl Java] RE: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] A Tcl > or TclBlend pr oblem? > > Well, if you really wanted a workaround, you could always unset the > variable in the after command :) 'unset' is there to simulate a local variable or temporary variable. It can't be moved into the after command. You don't need to 'unset' if you just put the whole thing inside a proc. Any local or temporary Java reflect objects in Tcl can be converted to its string form inside some script. Your Java object is GC'ed while the string reference the object is still being used. In TclBlend, this is a major problem that I am avoiding the reflection mechanism entirely. > The real issue here is that Tcl does not have any support for > a "locking down" the internal rep of an object. There > is no "general" way to fix this problem because to really > fix it Tcl would need to be extended so that it supported > another sort of internal rep that could not be disposed of. Well, there are things like file handles, which are locked down. set x [file open foo] fileevent $x readable "read $x" unset x will not remove the file handle. -- Jiang Wu [EMAIL PROTECTED] ---------------------------------------------------------------- The TclJava mailing list is sponsored by Scriptics Corporation. To subscribe: send mail to [EMAIL PROTECTED] with the word SUBSCRIBE as the subject. To unsubscribe: send mail to [EMAIL PROTECTED] with the word UNSUBSCRIBE as the subject. To send to the list, send email to '[EMAIL PROTECTED]'. An archive is available at http://www.mail-archive.com/tcljava@scriptics.com