Hi everybody,

In prototype1.4
$H([1,2,3]) would yield
#<Hash:{'0':1, '1':2, '2':3}>

which to me makes a lot of sense.

It means you can basically treat structured Objects, containing a  
mixture of Hashes and Arrays the same: Cast them (recursivley) to  
Hash, iterate and (if necessary) judge by the key, if the thing was  
an array or hash.

In prototype 1.5
$H([1,2,3]) yields
[]

That is: no Hash, not even the original array. That is quite  
counterintuitive and breaks a lot of code for us, for no obvious reason.
Please consider, that even
$H() gives me
#<Hash:{}>

an empty Hash that is.

Can somebody explain if this is just an error or wanted behaviour. We  
are facing big problems because of that.

Sincerely yours

Alexander Presber

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to