Hi,

2010/2/23 Viktor Szakáts <harbour...@syenar.hu>:
> It means we should name it x:__tonumber(), which
> looks a little strange. Plus, it forces using
> OOP syntax in non-OOP code.

Class(y) does this sort of "type wrapper" or "scalar classes". For example:

n := 15
? n:isKindOf( FooBar() )  // returns .F.

This makes the code a lot cleaner.

> F.e. in Python which is a strongly type language,
> there is no casting, just conversion functions.

Python is a dynamically typed language (aka "duck typing").

Best regards,

-- 
Daniel Gonçalves
Base4 Sistemas Ltda.
[www.base4.com.br]
[twitter.com/spanazzi]
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to