Re: [TCLCORE] [SPAM] [6.0] Re: base64 in the core?
by Alexandre Ferrieux other posts by this author
Apr 28 2008 2:50AM messages near this date
Re: [TCLCORE] [SPAM] [6.0] Re: base64 in the core?
|
Re: [TCLCORE] [SPAM] [6.0] Re: base64 in the core?
On Mon, Apr 28, 2008 at 10:16 AM, Donal K. Fellows
<donal.k.fellows@[...].uk> wrote:
> Larry McVoy wrote:
> > Can you explain that a bit? I'm thinking something like
> >
> > when we detect a foreach (c in buf)
> > bump the refcount on buf
> > set an index at 0
> > start the loop
> > each iteration
> > c = buf[index++]
> > loop body
> > decr refcount on c
> > decr refcount on buf
> >
> > What's so hard about that? I realize I'm asking this naively so I'm not
> > say "you wuss, go do it", I'm say "teach me why this is hard, please".
>
> The problem is that lots of code has to be rewritten to understand
> keeping a reference count on the buffer, or rather on the string rep[*].
What about doing this iteration on a byte array rather than a string ?
(of course it may not deserve the [string foreach] name in that case ;-)
-Alex
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Trevor Davel
Pat Thoyts
Kevin Kenny
Donal K. Fellows
Larry McVoy
Donal K. Fellows
Larry McVoy
Donal K. Fellows
Kevin Kenny
Donal K. Fellows
Larry McVoy
Donal K. Fellows
Alexandre Ferrieux
Lars Hellstrom
Donal K. Fellows
Alexandre Ferrieux
Donal K. Fellows
Alexandre Ferrieux
Donal K. Fellows
Alexandre Ferrieux
Larry McVoy
|