From: Wayne Magor Date: 2007-10-19T07:26:59+09:00 Subject: Re: Struct is slow Robert Klemme wrote: > Make the latter > > R547 type_arr.each do |x| > print(x.typedef_type, "\t\t", x.typedef_name, "\n") > > Where x is your struct type. Yes, that's exactly what I did, which was no different. You wouldn't expect it to be different, would you? My understanding is that the two are exactly the same, just different syntax, right? Anyway, the clue to the problem is that it doesn't work the same way. I'm on a trip in another state right now and can't work on it, but in a few weeks if I have time I'll run it with a debugger and maybe I'll understand why using Struct would be different from using a 2-element array. The difference file shows exactly what I did. It's correct Ruby, isn't it? If there's something I did wrong, I don't see it. -- Posted via http://www.ruby-forum.com/.