[Dennis writes that he can't call built-in sin() from inside a class that
has a sin() method.]

Hi Dennis,

It is true that class scope is more local than (and hides/overrides) the
global scope.  This is a feature, not a bug.

>From inside your class, though, you can obtain a reference to the built-in
sin() function with proc("sin",0).  So, you can have your cake and eat it too.
Look in the ipl for lots of examples of calling proc( ... , 0 ) whenever there
is a potential name conflict.

Another way to address it is via packages, but that would be a longer story
better told by our package-meister (hello, Robert!).

Cheers,
Clint

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Unicon-group mailing list
Unicon-group@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to