Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

TCL(Tool Command Language) Scripting

Why does Tcl_CreateAlias() set the interp result?


Tcl_CreateAlias() and Tcl_CreateAliasObj() set the result of the source
interpreter (in which the alias is created). They don't do that
themselves, but they call AliasCreate() which does that for them.

This may come in handy for object commands like Tcl_InterpObjCmd(), but
in the cases where Tcl_CreateAlias() and Tcl_CreateAliasObj() are not
called as part of an object command, I do not see the need for setting
an interp result (there may be an exception in case these functions fail).

And even if they are called as part of an object command, ought not the
object command manage the interpreter result itself?

Maybe I overlook a very good reason, but shouldn't the docs mention the
side effect in that case?

Erik
--
   leunissen@       nl | Merge the left part of these two lines into one,
e.          hccnet.   | respecting a character's position in a line.

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc