[Ironruby-core] Name mangling seems broken
mail at tinco.nl
Mon Nov 22 22:37:43 EST 2010
You can download the dll's + test source at:
https://github.com/d-snp/bwapi-ironruby it requires no setup. (source
of the dll's is: http://code.google.com/p/bwapi-mono-bridge/ not mine)
On Tue, Nov 23, 2010 at 04:31, Tinco Andringa <mail at tinco.nl> wrote:
> Hey guys,
> I seem to have IronRuby name mangling in a rather inconsistent state.
> I was under the impression it would automagically work, but it seems
> it only changed the array #methods returns and not the actual methods
> it responds to...
> (ir):1: undefined method `is_connected' for BWAPI.Client:BWAPI::Client (NoMethod
> => false
>>>> BWAPI::Bwapi.BWAPIClient.respond_to? :isConnected
> => true
>>>> BWAPI::Bwapi.BWAPIClient.respond_to? :is_connected
> => false
>>>> BWAPI::Bwapi.BWAPIClient.methods - Object.new.methods
> => ['finalize', 'dispose', 'get_hash_code', 'equals', '==', 'data=', 'data', 'is
> _connected', 'connect', 'disconnect', 'update', 'swig_c_mem_own', 'swig_c_mem_ow
> => "22.214.171.124"
> So it does not respond to 'is_connected' but 'is_connected' is in the
> methods array.
> Anyone an idea what I could have missed?
More information about the Ironruby-core