12-30-2024, 11:50 PM
Since certain people still cannot admit their initial opening was an intentional slight:
I will state (and practically quote myself) that that the use of instance_variable_get has the ability to garner the value of the instance value directed by a supplied :symbol. As I said, :symbols are inherently just pointers like an index position within an array of instance variables.
By that, it would naturally be faster. Such as the development of random/index access records compared to sequential records.
But I will also state that the eval command is a very powerful command, able to let one execute ruby commands stored within strings, be it method names, complex calculations, or to retrieve the value of instance variables.
Whilst slower, it is not as limited a command.
Surely when the RMXP SDK was envisioned, they would not have used anything but 'eval' as the 'instance_variables' command within the Object class returned string data, and eval was more widely used and known.
Be advised; If prolonged, I will continue to re-iterate how I was referring to the eval command (1) from the very beginning and how statements that followed (2,3) were actual contradictions. This when one could have just said "an alternative method for this would be..." and not throw jabs.
Yeah, I got some rather ... colourful ... reactions to that cat.
- DerVVulfman stated "the 'eval' command only works with strings."
- Kyonides stated "And here I come once again to prove you wrong!"
- Kyonides then contradicted himself with "Nobody is supposed to evaluate symbols"
I will state (and practically quote myself) that that the use of instance_variable_get has the ability to garner the value of the instance value directed by a supplied :symbol. As I said, :symbols are inherently just pointers like an index position within an array of instance variables.
By that, it would naturally be faster. Such as the development of random/index access records compared to sequential records.
But I will also state that the eval command is a very powerful command, able to let one execute ruby commands stored within strings, be it method names, complex calculations, or to retrieve the value of instance variables.
Whilst slower, it is not as limited a command.
Surely when the RMXP SDK was envisioned, they would not have used anything but 'eval' as the 'instance_variables' command within the Object class returned string data, and eval was more widely used and known.
Be advised; If prolonged, I will continue to re-iterate how I was referring to the eval command (1) from the very beginning and how statements that followed (2,3) were actual contradictions. This when one could have just said "an alternative method for this would be..." and not throw jabs.
Yeah, I got some rather ... colourful ... reactions to that cat.