If I want to get the underlying pointer address of a
Ruby string, I can do this:
string = “hello”
[string].pack(“p*”).unpack(“l”).first # 43329024
I thought there was a shortcut for this. Originally I thought
perhaps object_id was identical, but that doesn’t seem to be
the case. Maybe that was immediate types only.
Anyway, is there a shorter way? Or am I remembering
This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
all copies of the communication and any attachments.