[Rock-dev] oroinspect not creating an yml configuration, bugg or misusage

Matthias Goldhoorn matthias.goldhoorn at dfki.de
Fri Sep 9 09:05:24 CEST 2011


Fixed now in master (hope we don't have any additional bugs frigged by this)

*close*

On 08.09.2011 18:34, Sylvain Joyeux wrote:
> 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).
>


-- 
  Dipl.-Inf. Matthias Goldhoorn
  Unterwasserrobotik

  Hauptanschrift Standort Bremen:
  DFKI GmbH
  Robotics Innovation Center
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Phone: +49 (0)421 178 45-4193
  Fax:   +49 (0)421 178 45-4150
  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