Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[join] refactor

Closed / Accepted1669420fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2007-02-26 20:02:23
Attached patch is a rewrite
of the [join] command.  It
replaces the old implementation,
which explicitly generates and
copies string reps, with a
new implementation that simply
calls Tcl_AppendObjToObj() and
does whatever that does.

This change means that [join]
will receive whatever special
case append efficiencies are
built into Tcl_AppendObjToObj()
both now, and going on into
the future (where we might
imagine, say, ByteArrays getting
some attention).
dgpplain2007-02-27 03:02:24
File Added - 217882: join.patch
dkfplain2007-02-27 22:19:27
Logged In: YES 
user_id=79902
Originator: NO

The use of Tcl_AppendObjToObj instead of Tcl_AppendToObj seems reasonable.
dgpplain2007-03-02 22:12:31
Logged In: YES 
user_id=80530
Originator: YES

committed for 8.5a6
Log in (anonymous is fine) to add a comment.

Attachments: