[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Array.=== Bug, Rails Bug, or brain failure?

Berger, Daniel

5/23/2005 8:56:00 PM

> -----Original Message-----
> From: Jamis Buck [mailto:jamis@37signals.com]
> Sent: Monday, May 23, 2005 2:46 PM
> To: ruby-talk ML
> Subject: Re: Array.=== Bug, Rails Bug, or brain failure?

> Indeed, truth is stranger than fiction. ;) Consider this
> snippet from
> AR's association_proxy.rb. (Here's where we're getting into some
> pretty black magic):
>
> alias_method :proxy_respond_to?, :respond_to?
> instance_methods.each { |m| undef_method m unless m =~ /(^__|^nil
> \?|^proxy_respond_to\?|^send)/ }
>
> def method_missing(symbol, *args, &block)
> load_target
> @target.send(symbol, *args, &block)
> end
>
> def respond_to?(symbol, include_priv = false)
> proxy_respond_to?(symbol, include_priv) || (load_target &&
> @target.respond_to?(symbol, include_priv))
> end
>
> It's proxying to an array, and undefining all the relevant
> methods on
> the proxy so that things like #class get passed to the proxy, too.
> Unfortunately, it looks like === doesn't get proxied, and I'm not
> sure why. Perhaps Ruby does some optimizing under the covers?
>
> At any rate, yah. It can be annoying. But you really are
> dealing with
> a proxy, and not an array. At least, not directly.
>
> - Jamis

I think someone needs to take a look at Forwardable and Delegator.
Using a regular expression there just feels very, very wrong, too.

Regards,

Dan


12 Answers

Mamesick

5/24/2009 6:43:00 PM

0


"Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>
> "Hotblack Desiato" <noone@nothing.com> wrote in message
> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>
>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>
>>> A POLISH lorry driver who caused the death of popular Cleethorpes singer
>>> Amanda Woodhouse was today jailed for six years.
>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>> unit kept going for a further 42 metres along the road after the fatal
>>> collision on the A16 in South Lincolnshire on September 26.
>>>
>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>> driving.
>>>
>>> He was jailed for five years, plus a further year for an incident three
>>> months earlier, when he was in collision with a lorry after falling
>>> asleep at the wheel.
>>>
>>> ***************
>>>
>>> http://www.nowarfor...
>>>
>>
>> Chris, just about everything you post in this ng, has cultural or racial
>> conotations; to the extent, that when our own white, middle class, middle
>> Engand, elected bretherin were robbing us blind by 'gaming' us out of
>> hard earned money for personal gain, not only did you appear to not have
>> an opinion on the matter but you also insulted people who did.
>
> Such as, and when ?

And I quote from 12/05/2009:

"Thank god the Sheeple are so easily distracted by MP's expenses claims "


Distracted ? .. sheeple ??


Chris X

5/24/2009 6:52:00 PM

0


"Hotblack Desiato" <noone@nothing.com> wrote in message
news:37WdnXAzsduNCITXnZ2dnUVZ8tednZ2d@bt.com...
>
> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
> news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>>
>> "Hotblack Desiato" <noone@nothing.com> wrote in message
>> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>>
>>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>>
>>>> A POLISH lorry driver who caused the death of popular Cleethorpes
>>>> singer Amanda Woodhouse was today jailed for six years.
>>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>>> unit kept going for a further 42 metres along the road after the fatal
>>>> collision on the A16 in South Lincolnshire on September 26.
>>>>
>>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>>> driving.
>>>>
>>>> He was jailed for five years, plus a further year for an incident three
>>>> months earlier, when he was in collision with a lorry after falling
>>>> asleep at the wheel.
>>>>
>>>> ***************
>>>>
>>>> http://www.nowarfor...
>>>>
>>>
>>> Chris, just about everything you post in this ng, has cultural or racial
>>> conotations; to the extent, that when our own white, middle class,
>>> middle Engand, elected bretherin were robbing us blind by 'gaming' us
>>> out of hard earned money for personal gain, not only did you appear to
>>> not have an opinion on the matter but you also insulted people who did.
>>
>> Such as, and when ?
>
> And I quote from 12/05/2009:
>
> "Thank god the Sheeple are so easily distracted by MP's expenses claims "
>
> Distracted ? .. sheeple ??

Yes. The post was pointing out the MAIN problems facing Britain today.
Namely Slavic immigration causing massive unemployment among native Britons,
the economic chaos that this government has created, and the illegal wars
and occupations of Iraq and Afghanistan.
MPs expenses are contemptible, and the whole racket has been going on for
decades it is NOT a recent phenomenon as the meeja would have you believe.
I felt no need to devote a post exclusively to the issue, so may here had
already done so in any case - MPs fiddle their expenses, bears shit in the
woods and the sun will rise tomorrow morning !


DVH

5/24/2009 8:08:00 PM

0


"Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>
> "Hotblack Desiato" <noone@nothing.com> wrote in message
> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>
>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>
>>> A POLISH lorry driver who caused the death of popular Cleethorpes singer
>>> Amanda Woodhouse was today jailed for six years.
>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>> unit kept going for a further 42 metres along the road after the fatal
>>> collision on the A16 in South Lincolnshire on September 26.
>>>
>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>> driving.
>>>
>>> He was jailed for five years, plus a further year for an incident three
>>> months earlier, when he was in collision with a lorry after falling
>>> asleep at the wheel.
>>>
>>> ***************
>>>
>>> http://www.nowarfor...
>>>
>>
>> Chris, just about everything you post in this ng, has cultural or racial
>> conotations; to the extent, that when our own white, middle class, middle
>> Engand, elected bretherin were robbing us blind by 'gaming' us out of
>> hard earned money for personal gain, not only did you appear to not have
>> an opinion on the matter but you also insulted people who did.
>
> Such as, and when ?
>
>> Insult the blacks, insult, the Arabs, the Jews as well if we wish but
>> we're not allowed to talk about what a pile of excrable, psychotic
>> bastards our own white fellow kith and kin are capable of being. Because
>> at that point, the vehicle of racial politics runs in to the sand..
>
> You clearly have no idea. Skin colour doesn't bother me one iota.

We're all allah's children.


Maria

5/24/2009 10:10:00 PM

0

Hotblack Desiato wrote:
> However, there's little point in addressing
> the relatively poor standards of behaviour which immigrants can at times
> exhibit, when our own white, English, successful elite belong in the tower
> of London with their necks on the block. Exactly what do we use for a
> criterion for judgement of others if we accept this to be true?

A DSA driving test is the usual way :)

Don diddi da

5/24/2009 10:33:00 PM

0


"Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>
> "Hotblack Desiato" <noone@nothing.com> wrote in message
> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>
>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>
>>> A POLISH lorry driver who caused the death of popular Cleethorpes singer
>>> Amanda Woodhouse was today jailed for six years.
>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>> unit kept going for a further 42 metres along the road after the fatal
>>> collision on the A16 in South Lincolnshire on September 26.
>>>
>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>> driving.
>>>
>>> He was jailed for five years, plus a further year for an incident three
>>> months earlier, when he was in collision with a lorry after falling
>>> asleep at the wheel.
>>>
>>> ***************
>>>
>>> http://www.nowarfor...
>>>
>>
>> Insult the blacks, insult, the Arabs, the Jews as well if we wish but
>> we're not allowed to talk about what a pile of excrable, psychotic
>> bastards our own white fellow kith and kin are capable of being. Because
>> at that point, the vehicle of racial politics runs in to the sand..
>
> You clearly have no idea. Skin colour doesn't bother me one iota.

But Poles in the UK do?

abelard

5/24/2009 10:36:00 PM

0

On Sun, 24 May 2009 19:37:20 +0100, "Chris X"
<Chris_X2006@yahoo.co.uk> wrote:

>You clearly have no idea. Skin colour doesn't bother me one iota.

unless it's 'white'?

--
web site at www.abelard.org - news comment service, logic, economics
energy, education, politics, etc 1,552,396 document calls in year past
--------------------------------------------------------------------------------
all that is necessary for [] walk quietly and carry
the triumph of evil is that [] a big stick.
good people do nothing [] trust actions not words
only when it's funny -- roger rabbit
--------------------------------------------------------------------------------

William Black

5/24/2009 10:55:00 PM

0

Maria wrote:

> Hotblack Desiato wrote:
>> However, there's little point in addressing
>> the relatively poor standards of behaviour which immigrants can at times
>> exhibit, when our own white, English, successful elite belong in the
>> tower of London with their necks on the block. Exactly what do we use for
>> a criterion for judgement of others if we accept this to be true?
>
> A DSA driving test is the usual way :)

Not if you hold a driving license from another EC country, even if it is a
place where they've got a card on the door telling you what the correct
bribe is...

--
William Black

Chris X

5/25/2009 5:06:00 AM

0


"Don diddi da" <privacy@privacy.com> wrote in message
news:0009314a$0$2103$c3e8da3@news.astraweb.com...
>
> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
> news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>>
>> "Hotblack Desiato" <noone@nothing.com> wrote in message
>> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>>
>>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>>
>>>> A POLISH lorry driver who caused the death of popular Cleethorpes
>>>> singer Amanda Woodhouse was today jailed for six years.
>>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>>> unit kept going for a further 42 metres along the road after the fatal
>>>> collision on the A16 in South Lincolnshire on September 26.
>>>>
>>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>>> driving.
>>>>
>>>> He was jailed for five years, plus a further year for an incident three
>>>> months earlier, when he was in collision with a lorry after falling
>>>> asleep at the wheel.
>>>>
>>>> ***************
>>>>
>>>> http://www.nowarfor...
>>>>
>>>
>>> Insult the blacks, insult, the Arabs, the Jews as well if we wish but
>>> we're not allowed to talk about what a pile of excrable, psychotic
>>> bastards our own white fellow kith and kin are capable of being. Because
>>> at that point, the vehicle of racial politics runs in to the sand..
>>
>> You clearly have no idea. Skin colour doesn't bother me one iota.
>
> But Poles in the UK do?

Slimey, this thread is about Poles in the UK and their wonderful knack of
slaughtering us on our own roads. I know the CF drugs are making you
lethargic, but do TRY to keep up !


Don diddi da

5/25/2009 7:18:00 PM

0


"Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
news:ye2dnePC84TQuofXnZ2dnUVZ8mmdnZ2d@giganews.com...
>
> "Don diddi da" <privacy@privacy.com> wrote in message
> news:0009314a$0$2103$c3e8da3@news.astraweb.com...
>>
>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>> news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>>>
>>> "Hotblack Desiato" <noone@nothing.com> wrote in message
>>> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>>>
>>>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>>>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>>>
>>>>> A POLISH lorry driver who caused the death of popular Cleethorpes
>>>>> singer Amanda Woodhouse was today jailed for six years.
>>>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>>>> unit kept going for a further 42 metres along the road after the fatal
>>>>> collision on the A16 in South Lincolnshire on September 26.
>>>>>
>>>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>>>> driving.
>>>>>
>>>>> He was jailed for five years, plus a further year for an incident
>>>>> three months earlier, when he was in collision with a lorry after
>>>>> falling asleep at the wheel.
>>>>>
>>>>> ***************
>>>>>
>>>>> http://www.nowarfor...
>>>>>
>>>>
>>>> Insult the blacks, insult, the Arabs, the Jews as well if we wish but
>>>> we're not allowed to talk about what a pile of excrable, psychotic
>>>> bastards our own white fellow kith and kin are capable of being.
>>>> Because at that point, the vehicle of racial politics runs in to the
>>>> sand..
>>>
>>> You clearly have no idea. Skin colour doesn't bother me one iota.
>>
>> But Poles in the UK do?
>
> Slimey, this thread is about Poles in the UK and their wonderful knack of
> slaughtering us on our own roads. I know the CF drugs are making you
> lethargic, but do TRY to keep up !

I think it's you who is one drugs or is it psychotic paranoia, who is Slimey
and what are CF drugs.

Chris X

5/25/2009 7:20:00 PM

0


"Don diddi da" <privacy@privacy.com> wrote in message
news:00533c43$0$21181$c3e8da3@news.astraweb.com...
>
> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
> news:ye2dnePC84TQuofXnZ2dnUVZ8mmdnZ2d@giganews.com...
>>
>> "Don diddi da" <privacy@privacy.com> wrote in message
>> news:0009314a$0$2103$c3e8da3@news.astraweb.com...
>>>
>>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>>> news:E4CdnV84r-p0DoTXnZ2dnUVZ8uednZ2d@giganews.com...
>>>>
>>>> "Hotblack Desiato" <noone@nothing.com> wrote in message
>>>> news:sbGdnUY2BsAqDITXnZ2dnUVZ8lmdnZ2d@bt.com...
>>>>>
>>>>> "Chris X" <Chris_X2006@yahoo.co.uk> wrote in message
>>>>> news:_tOdnT6KBouS4oTXnZ2dnUVZ8hCdnZ2d@giganews.com...
>>>>>> http://www.thisisgrimsby.co.uk/news/BREAKING-NEWS-Lorry-driver-jailed-singer-s-death/article-1016969-detail/ar...
>>>>>>
>>>>>> A POLISH lorry driver who caused the death of popular Cleethorpes
>>>>>> singer Amanda Woodhouse was today jailed for six years.
>>>>>> Karol Bienkowski, 54, was travelling so fast that his Scania tractor
>>>>>> unit kept going for a further 42 metres along the road after the
>>>>>> fatal collision on the A16 in South Lincolnshire on September 26.
>>>>>>
>>>>>> He admitted causing the death of mum-of-one Amanda, 27, by dangerous
>>>>>> driving.
>>>>>>
>>>>>> He was jailed for five years, plus a further year for an incident
>>>>>> three months earlier, when he was in collision with a lorry after
>>>>>> falling asleep at the wheel.
>>>>>>
>>>>>> ***************
>>>>>>
>>>>>> http://www.nowarfor...
>>>>>>
>>>>>
>>>>> Insult the blacks, insult, the Arabs, the Jews as well if we wish but
>>>>> we're not allowed to talk about what a pile of excrable, psychotic
>>>>> bastards our own white fellow kith and kin are capable of being.
>>>>> Because at that point, the vehicle of racial politics runs in to the
>>>>> sand..
>>>>
>>>> You clearly have no idea. Skin colour doesn't bother me one iota.
>>>
>>> But Poles in the UK do?
>>
>> Slimey, this thread is about Poles in the UK and their wonderful knack of
>> slaughtering us on our own roads. I know the CF drugs are making you
>> lethargic, but do TRY to keep up !
>
> I think it's you who is one drugs or is it psychotic paranoia, who is
> Slimey and what are CF drugs.

Slimey, hiding your ID in Usenet is NOT as easy as you obviously think !