tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Hefti <he...@netcetera.ch>
Subject Re: putx {= bug
Date Thu, 27 Dec 2001 10:46:26 GMT
I added it on Andrej's suggestion. It's a php idea.

Simon.


On Thu, 27 Dec 2001, Ronnie Brunner wrote:

> To be honest, I don't know how that got into the code. Imho: just thrw
> it out. It looks as if it was just a short cu way to "web::put" stuff
> in a template, but I don't see the necessitiy. Sure you would need to
> type less, but it adds a completely new syntax not used anywhere else.
>
> Simon: I assume you added that. For me you'd need an extremly good
> argument to leave that in.
>
> Ronnie
>
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5589
> >
> > test dwvarchan-1.0 {juggle channels} {
> >     set Blah 10
> >     web::response -select \#foo
> >     web::response -sendheader 0
> >     web::response -select default
> >     web::putx \#foo {{= $Blah}}
> >     set ::foo
> > } {10}
> >
> > does not generate the correct response, because in weboutint.c, {= is
> > transformed into
> >
> > web::put "stuff to put"
> >
> > and doesn't include the channel:
> >
> > 		    if (doPut == TCL_OK) {
> >
> > 			tclo1 = Tcl_NewStringObj("web::put ", 9);
> > 		    }
> >
> > Interesting - what are your feelings on the {= syntax?  Useful?
> > Indispensable?  Something to get rid of?  I don't see it in the
> > quickref manual, although I do see it used in one place in the
> > examples.
> >
>
> ------------------------------------------------------------------------
> Ronnie Brunner                               ronnie.brunner@netcetera.ch
> Netcetera AG, 8040 Zuerich    phone +41 1 247 79 79 Fax: +41 1 247 70 75
>

------------------------------------------------------------------------
Simon Hefti                                     simon.hefti@netcetera.ch
Netcetera AG, 8040 Zuerich    phone +41 1 247 79 47  fax +41 1 247 70 75



Mime
View raw message