Skip to content
Tcl Source Code View Ticket
Login

View Ticket

'in' operator for [expr] (TIP #133)

Closed / Fixed882238ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-01-22 16:55:37
This patch is my first attempt on a partial
implementation of TIP #133. It adds the implementation,
tests, and documentation for an 'in' operator to [expr].

As this is my first look into [expr] and bytecode
stuff, I am pretty sure, there are more efficient
and/or elegant ways to implement this. So please feel
free to tell me how it can be done better.

Even though 'not in' is already possible as !($string
in $list), I intend to add a '!in' operator to this
patch later on as the code matures.
rmaxplain2004-01-22 23:55:38
File Added - 74394: expr-in.patch
hobbsplain2005-05-31 08:55:40
Logged In: YES 
user_id=72656

ni and in are in 8.5 now.
Log in (anonymous is fine) to add a comment.

Attachments: