[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: problem undrstanding cotainers

On Tue, 30 Mar 1999, Ralf S. Engelschall wrote:

> > You're right, it's because a variable is cleared when it is preserved.
> > Don't know why (Ralf, any idea?)
> No, I've forgot the reason. I just know that the whole preserve/restore stuff
> and Meta-HTMLs global scope for variables is the most horrible thing in
> Meta-HTML and that I needed a lot of iterations to make the preserve/restore
> stuff working correctly.  So when you want to change something there, at least
> be _VERY_ carefully. I'm sure it will cause nasty side-effects...

Ok, after reading some of the included system files it is clear i won't
change anything in the preserve/restore stuff.

Is there a better solution to this one?
<define-container top>
<preserve attr>
<set-var %attributes>
<set-var tmp:begin="child attr=\"<get-var attr>\"">
<%%eval <prog <<get-var tmp:begin>><concat %qbody</child>>>>
<restore attr>


Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com