List Info

Thread: Re: Regsub Problem




Re: Regsub Problem
user name
2007-10-05 14:38:59
Dossy Shiobara wrote:
> On 2007.10.05, Bahr, Michael <mbahrhst.nasa.gov> wrote:
>> Thanks Dossy, I get the impression that Tcl's
regsub does not support
>> commands, i.e. [ ], for the "replacement"
string.  So is this a bug or
>> feature not implemented?
> 
> At best, it's a feature not implemented.  It's
certainly not a bug, by
> any means.
> 
> If you can show that there's an appreciable performance
impact to Tcl's
> approach of not cramming the ability to eval every
substitution
> parameter--I mean, that Tcl's way of doing things is
measurably
> slower--then it's a feature request.  It's not a bug
because I haven't
> seen anywhere in Tcl's documentation that it was ever a
feature in the
> first place.

Correct, this was never a feature.  In fact, I did code this
up once (a 
regsub -eval switch), but aside from simplicity, the result
was actually 
slower than the solution provided by others using existing
primitives.

Jeff
_______________________________________________
ActiveTcl mailing list
ActiveTcllistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )