Title: RE: Interpolation

Just for the record, the right output is
\$bar
because $bar wasn't set initially :)

    -----Original Message-----
    From:   Geir Magnusson Jr. [SMTP:[EMAIL PROTECTED]]
    Sent:   Tuesday, November 28, 2000 10:16 AM
    To:     [EMAIL PROTECTED]
    Subject:        RE: Interpolation

    Fedor :

            Not that I'm trying to scare you, but...

            what would this do then?:

            #set $foo="\$bar"
          #set $bar="$foo"

    Well, I can't try it here, but I would guess :

    after the first set, $foo -> interpolated "\$bar" which is "$bar"� (the literal)

    after the second #set, $bar� -> interpolated "$foo" -> "$bar" (the literal)

    so if you then output $bar, you would get '$bar' in the output (minus the single quotes)

    Try it... let us know.� All the code is in CVS.� Might have made the nightly tarball, might not.� Can't recall.





            _______________________________________________________
    Tired of slow Internet? Get @Home Broadband Internet
    <http://www.home.com/xinbox/signup.html>

Reply via email to