Tcl Source Code

View Ticket
Login
Ticket UUID: 2544760
Title: [interp exists] accepts 0 arguments
Type: Bug Created on: 2009-01-29 06:06:20
Submitter: dgp Assigned to: dgp
Subsystem: 20. [interp] Severity:
Priority: 5 Medium Last modified: 2009-01-29 06:06:20
Status: Open Closed by:
Resolution: None Closed on:
Version: obsolete: 8.6b1.1
Description:
Docs for [interp exists] :

interp exists path
  Returns   1  if a slave interpreter by the specified path exists
  in this master, 0 otherwise. If path is  omitted,  the  invoking
  interpreter is used.


Except for the last sentence, it appears
to demand exactly one argument.  The last
sentence lacks clarity.

As implemented, [interp exists] with zero
arguments is just an obscure way to write "1".

I think it's pointless and best removed.