Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-03-20
05:10 • Closed ticket [667456ffff]: replace regexp with string commands plus 7 other... artifact: aa28ca56f1 user: dgp
2003-01-24
04:34 • Ticket [667456ffff]: 4 changes artifact: 647ec69e68 user: davidw
04:10 • Ticket [667456ffff]: 5 changes artifact: 043bdd6345 user: dgp
2003-01-14
14:01 • Add attachment regexp.diff to ticket [667456ffff] artifact: efc87bb4d8 user: davidw
14:01 • Ticket [667456ffff] replace regexp with string commands status still Open wi... artifact: 143d096974 user: davidw
13:15 • Ticket [667456ffff]: 4 changes artifact: 6c5b76c19f user: dgp
2003-01-13
23:01 • New ticket [667456ffff]. artifact: d20b643121 user: davidw

replace regexp with string commands

Closed / Accepted667456ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-01-13 23:01:42
I have gone through and replaced regexp commands with
their equivalent string commands.   Patch attached.
dgpplain2003-01-14 13:15:50
Logged In: YES 
user_id=80530

no patch attached.
davidwplain2003-01-14 14:01:33
File Added - 39631: regexp.diff

Logged In: YES 
user_id=240

Sorry, don't know why there weren't any files.  Feel free to
reassign this and the regsub request to a better heading.
dgpplain2003-01-24 04:10:44
Logged In: YES 
user_id=80530

seems like it's fine to make this change, but
it's also fine to leave things as they are.
[regexp] isn't going away.

On the general principle of "If it ain't broke...",
I'm inclined to leave this alone, unless there's
some reason for doing this I don't perceive.

For now, I'll just drop the priority.
davidwplain2003-01-24 04:34:33
Logged In: YES 
user_id=240

Fair enough.  My reasons for taking the time to do this were:

1) It's faster.  Maybe none of these cases in the patch will
benefit from that, though.  It also doesn't take up space in
the regexp cache.

2) I think it's good style, because it encourages people to
use the right tool for the job.

Rather than drop the priority and just leave it alone, why
not decide on it on the tcl-core list?  If people do want to
do it, the patch is going to go in better now rather than
later.  If people don't want to see it happen, I'm certainly
not going to be offended, and best to decide and be done
with it.
dgpplain2003-03-20 05:10:21
Logged In: YES 
user_id=80530

committed to HEAD

rejected changes to http 1.0 because
that package is only distributed to
support Tcl 7 interps.

added patchlevel jumps to other packages.  

Had to fix several problems with the patch.
In the future, please `make test` before
submitting the patch here.
Log in (anonymous is fine) to add a comment.

Attachments: