ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tclxml-devel
tclxml-devel
Re: [Tclxml-devel] Document Management in TclXML v3.0
by Joe English other posts by this author
Jun 29 2003 7:28PM messages near this date
[Tclxml-devel] Document Management in TclXML v3.0 | [Tclxml-devel] TclXML v3.0
Steve Ball wrote:
> 
>  I've been working on TclXML v3.0 and trying to incorporate
>  some new ideas on document and node management.  In particular,
>  your request to have implicit document destruction has
>  been implemented.  However, I'm now at the point where
>  I just cannot get it to work reliably.

[... explanation deleted ...]

>  My conclusion is that object shimmering defeats any attempt
>  to have mutable objects automatically garbage collected.

That's a correct conclusion.  This sort of thing just
isn't possible in Tcl.  Of course some extensions do
it anyway, but there is no way to make it 100% reliable.

>  At this point there is a choice: don't define document node commands
>  (ie. stay with the v2.x TclDOM API) or require explicit
>  destruction of documents.  At this stage my preference is for
>  the latter.

Even if you don't define document node commands, there are
still other opportunities for shimmering.  ([eval] is probably
the main one; there are many others.)

It's possible, with great care, to write code that avoids
shimmering altogether, but IMO that places too large a burden
on application programmers.  I'm strongly in agreement with
Steve's preference for explicit destruction.


--Joe English

  jenglish@[...].com


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Tclxml-devel mailing list
Tclxml-devel@[...].net
https://lists.sourceforge.net/lists/listinfo/tclxml-devel
Thread:
Steve Ball
Joe English

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved