Re: How are arguments a legit argument to Array.slice?



On Aug 29, 2:40 pm, Lasse Reichstein Nielsen <lrn.unr...@xxxxxxxxx>
wrote:

I'm jumping into the middle here, but was the problem the
interpretation of
 Array.prototype.slice.call(arguments)

This calls the "call" method on the function "Array.prototype.slice"
with the argument "arguments".

This gives approximatly the same effect as placing the function
as a method of the arguments object and calling it.

 arguments.somename = Array.prototype.slice;
 ... arguments.somename();

just without actualy creating a property on the arguments object.

[snip]
--
Lasse Reichstein Nielsen
 DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
  'Faith without judgement merely degrades the spirit divine.'

Believe it or not, I think I understand. The function is
being called with only one argument (the arguments object)
and thus that is the context of the function call on
the slice method. Did I say that correctly?
.



Relevant Pages

  • Re: casting from int to byte problem
    ... It is unlikely that's what Curt ... Don't tell us you're calling our twisted nebulous a liar! ... Interpretation is by nature subjective, ... show there were some rational reasons for picking signed behavior instead ...
    (comp.lang.java.programmer)
  • Re: Mercators Relativity
    ... it should be clear either your geometrical interpretation is ... Hence my observation your a (this velocity could ... calling "total velocity" can have no physical significance. ...
    (sci.physics.relativity)
  • Re: CK blood test
    ... > provide evidence for your interpretation, yet you demand it of me. ... >>> Name calling seems to be theraputic for you. ... The only one I use is liar. ...
    (sci.med.cardiology)
  • Re: keeping computer on 2/24
    ... time on chitters like you by ... placing you on my troll killfile. ... Calling an illegal alien an "undocumented worker" is like calling a ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Mostly OT... The law is the law....
    ... Man, you whine about me calling your fringe opinion k00ky, and then you ... interpretation supercedes theirs, ... mandated* court of constitutional experts. ...
    (rec.autos.driving)

Loading