tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ronnie Brunner <ron...@netcetera.ch>
Subject Re: putx {= bug
Date Fri, 28 Dec 2001 13:52:06 GMT
> > 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'd say that right now, there is a bug in web::putx, not in the
implementation of the "{=" hack
------------------------------------------------------------------------
Ronnie Brunner                               ronnie.brunner@netcetera.ch
Netcetera AG, 8040 Zuerich    phone +41 1 247 79 79 Fax: +41 1 247 70 75

Mime
View raw message