The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1669 - File: showthread.php PHP 8.2.28 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 1669 errorHandler->error_callback
/showthread.php 915 buildtree




java people..wtf is going on here.
#10
instanceof is when you dont know the concrete type of the object and you are using some abstract parent type to point to the object. if you are using a more concrete type, then you made a mistake. "you would never be doing this anyway" is exactly why it throws an error.
it does seem a little strange especially if coming from c++, but java babysits you more, which IMO is a good thing. no type saftey is a huge pita
SM #55 | 06 Titan | 12 Focus | 06 Exige | 14 CX-5
  Reply


Messages In This Thread

Forum Jump: