[Rock-dev] oroinspect not creating an yml configuration, bugg or misusage
Sylvain Joyeux
sylvain.joyeux at dfki.de
Thu Sep 8 18:34:43 CEST 2011
On 09/08/2011 03:55 PM, Matthias Goldhoorn wrote:
> i think i found the reason:
>
> tools/orocos.rb/bin/oroinspect
> 41 opt.on('--save FILE:SECTION', 'saves the task default
> configuration in the specified file. If a file is a directory, an
> automatic name will be gen
> 42 if save_configuration_ =~ /:(\w+)$/
> 43 save_configuration = [$`, $1]
> 44 else
> 45 save_configuration = [save_configuration_]
> 46 end
> 47 end
Yep. I had a look.
The problem is a horrible behaviour of ruby 1.9 w.r.t. block arguments.
The situation is as follows:
* in ruby 1.8, a block that references a local variable that has the
same name that one from its parent scope actually *does* get a reference
on the parent variable
* in ruby 1.9, *the plan* was to make all block local variables
private, and allow the programmer to select which ones are shared (which
would be a very good thing).
* in ruby 1.9, for backward compatibility reasons, the actual
behaviour is the one from 1.8 EXCEPT for block arguments that have the
same name than parent scope's local variable (this case).
--
Sylvain Joyeux
Space& Security Robotics
!!! Achtung, neue Telefonnummer!!!
Standort Bremen:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Phone: +49 (0)421 178-454136
Fax: +49 (0)421 218-454150
E-Mail: robotik at dfki.de
Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------
More information about the Rock-dev
mailing list