Unexpected result from [slave alias srcCmd {}]
- From: Erik Leunissen <look@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 May 2005 18:29:54 +0200
L.S.
I'm exercising aliases between master and slave interps. The following gave an unexpected result, or I misunderstood something.
The unexpected part is that [slave alias srcCmd {}] should delete a previously defined alias. What I find is that it deletes the command itself in the slave interpreter. See below for a reproducible script.
Did I misunderstand the meaning of an alias, or is this a bug?
Greetings,
Erik Leunissen ==============
% interp create slave slave % proc putsFromMaster {txt} { puts "Master: $txt" } % slave alias puts putsFromMaster puts % slave eval puts foo Master: foo % puts [slave eval info commands p*] pwd pid proc package puts % slave alias puts {} % slave eval puts foo invalid command name "puts" % puts [slave eval info commands p*] pwd pid proc package
-- leunissen@ nl | Merge the left part of these two lines into one, e. hccnet. | respecting a character's position in a line.
.
- Follow-Ups:
- Re: Unexpected result from [slave alias srcCmd {}]
- From: Andreas Leitgeb
- Re: Unexpected result from [slave alias srcCmd {}]
- From: Erik Leunissen
- Re: Unexpected result from [slave alias srcCmd {}]
- Prev by Date: Re: Parse input file and create widgets
- Next by Date: Re: hecl
- Previous by thread: are tclcompiler and tbcload maintained?
- Next by thread: Re: Unexpected result from [slave alias srcCmd {}]
- Index(es):
Relevant Pages
|