tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrej Vckovski <andrej.vckov...@netcetera.ch>
Subject Re: putx {= bug
Date Fri, 28 Dec 2001 14:49:18 GMT
On Fri, 28 Dec 2001, Ronnie Brunner wrote:

> > > This should not be an error:
> >
> > >      web::put [web::response] [subst %s]
> >
> > > should be exactly the same as
> >
> > >      web::put [subst %s]
> >
> > Yes, but when the web::put has been expanded inside of {=, therein
> > lies the problem:
> >
> > web::putx \#foo {= $bar}
> >
> > gets transformed into (more or less)
> >
> > web::put $bar
>
> This is correct if you ask me. However, I think that web::putx \#foo
> {<?[some code]?>} should temporarily (i.e. for the time of parsing
> [some code]) set the default channel to \#foo. I think that the
> correct behavior should be
>
> 	> ./websh3.10
> 	% web::putx \#foo {{web::put "hello world\n"}}
> 	% set foo
> 	Content-Type: text/html
> 	Generator: websh3.10 (c) Netcetera AG, http://netcetera.ch
>
> 	hello world
> 	%
>

I agree that that is what I would expect as user.

- Andrej.

------------------------------------------------------------------------
Andrej Vckovski                             andrej.vckovski@netcetera.ch
Netcetera AG, 8040 Zuerich    phone +41 1 247 79 05  fax +41 1 247 70 75


Mime
View raw message