comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: bug? or how to distinguish between a Hash and an array of Hashes ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: bug? or how to distinguish between a Hash and an array of Hashes ? [message #83472 is a reply to message #83389] Mon, 04 March 2013 08:44 Go to previous message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
oops I meant "array and scalar variables" above...

to make one other point, the ISA(/ARRAY) function is unambiguous in
its meaning.. it should return true for arrays and false for scalars,
regardless of whether the scalar is an object reference.

unless.. of course, the object refererence refers to an array-like
object I suppose... but in the case of hash objects if you try to do
this:

a=hash('first',1)

and then try to index it with a[0], this throws an error.

confusion! :)
Mark
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug? or how to distinguish between a Hash and an array of Hashes ?
Next Topic: Nan represented by a gray area

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:27:51 PDT 2025

Total time taken to generate the page: 0.00460 seconds