Re: [vos-d] Re: [OFF] typing
On Tue, Mar 14, 2006 at 03:26:28PM +0800, Lalo Martins wrote: Not really... you can *emulate* dynamic typing on a more static language like C++, but you only get dynamic typing between subclasses of a given root point (RefCounted in the case of VOS, IIRC). In fact, vRef is one of the best implementations of dynamic typing for static languages I remember seeing. This has less to do with dynamic typing than memory management... in C++ you can dynamic_cast any object. MetaObject and meta_cast are partly ways to add more structure to dynamic_cast and C++ polymorphism. The only thing is, you have to actually cast *to* something, it's not like some languages where you can just call a method and the object either responds or fails to (silently or not). Reed ___ vos-d mailing list vos-d@interreality.org http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d
Re: [vos-d] Re: [OFF] typing
Lalo, On 3/14/06, Lalo Martins [EMAIL PROTECTED] wrote: And you can constrain even that using slots.If you're interested,contact me in private :-) otherwise, just record the fact that it's possible.(A class with slots makes all attribute assignments failunless the attribute name is in the slots list.) Hmmm, that does sound like it resolves this issue. Perhaps it's this simple? I guess there is one other thing I like about C# compared with using Python, which is that once you've compiled it you know you're not going to wait for the application to load, start trying some command, and Boom! you mistyped a variable name, and the program dies... Is there some way to force Python to compile everything right at the start? ___ vos-d mailing list vos-d@interreality.org http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d