home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,852 of 2,753   
   Harold Aptroot to cr88192@hotmail.com   
   Re: How to implement dynamic typing?   
   11 Apr 10 21:49:14   
   
   From: harold.aptroot@gmail.com   
      
   "BGB / cr88192"  wrote in message   
      
   (snip)   
      
   > something fairly similar to the above can be done readily in both Java and   
   > C#, or in C++ if using RTTI and "dynamic_cast<>" (although of these, C#   
   > probably provides the most cumbersome syntax IMO).   
   >   
   > C++: if(dynamic_cast(obj)) ...   
   > Java: if(obj instanceof Foo) ...   
   > C#: if(typeof(Foo).IsInstanceOf(obj)) ...   
      
   How about: if (obj is Foo) for C#?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca