How can we use pointer concept (which we are using in C programming) in Ruby?
on 2014-04-30 21:40
on 2014-04-30 22:25
Jaimin Pandya wrote in post #1144580: > How can we use pointer concept (which we are using in C programming) in > Ruby? all object are pointer (handle) on an object instance. and method, class, module, thread... are ruby Object So writing ruby code is using pointers ... But * you can't use algebra on pointer : no addition/substraction * you can't get the real memory address of an object So ruby interpreter implementation is free to use his self addressing mechanism, which can not to be memory pointer (as in JVM/JRuby).