Unexpected result from [slave alias srcCmd {}]



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.

.



Relevant Pages

  • Recursive parallel readdir() with drb and slave libraries
    ... recurse down to the bottom, and work your way back up. ... So I've tried to use the 'drb' and 'slave' libraries to make my life ... def count ... #puts " no threads." ...
    (comp.lang.ruby)
  • Re: tcltest Tk Applications
    ... puts command which would redirect all stdout/stderr output to the master interp, and use the default puts command for everything else. ... I resolved the issues with non-standard files too and fixed a problem that had been created when defining the alias for puts. ... I've attached the complete setup for using slave interps with tcltest to this message. ...
    (comp.lang.tcl)
  • Re: tcltest Tk Applications
    ... While that is the case in a normal execution environment, it is not in a slave interpreter unless you make it explicitly available using. ... Since the [puts] immediately follows the opening of the file, there is no way to do that in a timely fashion when you're writing the test script. ... You could of course insert it into the proc to take into account that in the future it may be executed in a test environment that uses slave interpreters, ...
    (comp.lang.tcl)
  • DRb::DRbBadScheme when using drbunix sockets, why?
    ... I've been slowly hacking on my parallel recursive readdir() ... require 'slave' ... def count ... puts " no threads." ...
    (comp.lang.ruby)
  • Re: Replikations Frage
    ... vom Master auf den Slave kopiert hast und dabei die Permissions auf ... Die Datenbanken auf den Slave Server laufen ohne Probleme. ... # If you want to know which options a program support, ...
    (de.comp.datenbanken.mysql)