Re: RFC 229 (v1) Variable interpolation on demand.

2000-09-17 Thread Glenn Linderman
Chaim Frenkel wrote: > I thought he was asking for evaluating until nothing is left to interpolate. I wasn't, just some number of iterations of interpolation, but "infinite" iterations of interpolation is an interesting idea, and could be added as a special case... Such would make it hard to "es

Re: RFC 229 (v1) Variable interpolation on demand.

2000-09-17 Thread Simon Cozens
On Sat, Sep 16, 2000 at 11:38:57PM -0400, Chaim Frenkel wrote: > I thought he was asking for evaluating until nothing is left to interpolate. > > Something akin to: > $x = eval "$x" while $x =~ /[$@]/; > But more intelligent. OK, fair enough; and I appreciate the point that other double qu

Re: RFC 229 (v1) Variable interpolation on demand.

2000-09-17 Thread Chaim Frenkel
> "SC" == Simon Cozens <[EMAIL PROTECTED]> writes: SC> On Fri, Sep 15, 2000 at 05:56:36AM -, Perl6 RFC Librarian wrote: >> There is no way to turn obtain the value of $x from the value of $y. >> In other words, while $foo and $bar were interpolated into $x, they >> were not interp

Re: RFC 229 (v1) Variable interpolation on demand.

2000-09-15 Thread Glenn Linderman
Simon Cozens wrote: > sub interpolate {eval "\"@_\""} > > Never say "there is no way". There's *always* a way, and 99% of the time it > doesn't need to go in core. Yes. Well, actually if you carefully read the thread about RFC 111 in which I got the inspired flash that interpolation of variable

Re: RFC 229 (v1) Variable interpolation on demand.

2000-09-15 Thread Simon Cozens
On Fri, Sep 15, 2000 at 05:56:36AM -, Perl6 RFC Librarian wrote: > $foo = 'def'; > $bar = 'ghi'; > $x = "abc$foo$bar"; > $y = 'abc$foo$bar'; > > There is no way to turn obtain the value of $x from the value of $y. > In other words, while $foo and $bar were interp