Re: Disadvantages of "instanceof"
From: Dotty (Dotty_at_nospam.invalid)
Date: 02/16/05
- Next message: Hal Rosser: "Re: Disadvantages of "instanceof""
- Previous message: Mark Sizzler: "Disadvantages of "instanceof""
- In reply to: Mark Sizzler: "Disadvantages of "instanceof""
- Next in thread: Hal Rosser: "Re: Disadvantages of "instanceof""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 15 Feb 2005 19:00:56 -0600
"Mark Sizzler" <marksiz@email.org> wrote in message
news:cuu5c6$n7j$03$1@news.t-online.com...
> As far as I know one should not use the operator "instanceof" if possible.
>
> Why?
>
> Mark
>
Who told you "should not use?"
It can only be used with array and object types and values,
not primitive types and values. Other than this, I think it is fine.
HTH
Dotty
- Next message: Hal Rosser: "Re: Disadvantages of "instanceof""
- Previous message: Mark Sizzler: "Disadvantages of "instanceof""
- In reply to: Mark Sizzler: "Disadvantages of "instanceof""
- Next in thread: Hal Rosser: "Re: Disadvantages of "instanceof""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|