Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #12010

Re: Get object name from function

From Stefan Weiss <krewecherl@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Get object name from function
Date 2012-02-21 23:27 +0100
Organization albasani.net
Message-ID <ji15o1$rte$1@news.albasani.net> (permalink)
References <a256bb7e-3683-43d7-a9c9-086f391db492@m2g2000vbc.googlegroups.com>

Show all headers | View raw


On 2012-02-21 23:04, Archos wrote:
> If if is passed an object with a method to a function, would be
> possible to get the name of that object from the function)
> 
> funcTest(array.slice(4,8)) // should get: "array"

No, that's not possible. array.slice(4,8) will be evaluated first, and
the resulting array will be passed to funcTest.

- stefan

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Get object name from function Archos <raul.san@sent.com> - 2012-02-21 14:04 -0800
  Re: Get object name from function Stefan Weiss <krewecherl@gmail.com> - 2012-02-21 23:27 +0100
    Re: Get object name from function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-22 11:42 +0100
  Re: Get object name from function RobG <rgqld@iinet.net.au> - 2012-02-21 18:34 -0800
  Re: Get object name from function Dr J R Stockton <reply1208@merlyn.demon.co.uk> - 2012-02-22 19:02 +0000

csiph-web