|
From: Andre P. <at...@us...> - 2004-05-10 18:07:35
|
Update of /cvsroot/hoc/hoc/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28502 Modified Files: Mapping_Types.pod Log Message: Added blurb about ambiguous function names (to the reference chapter) Index: Mapping_Types.pod =================================================================== RCS file: /cvsroot/hoc/hoc/docs/Mapping_Types.pod,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Mapping_Types.pod 7 May 2004 08:38:03 -0000 1.2 +++ Mapping_Types.pod 10 May 2004 18:07:23 -0000 1.3 @@ -29,6 +29,22 @@ =head3 C<struct> Types +=head3 Ambiguous Function Names + +Some functions have the same name and are defined in more than +one class: e.g. the I<NSProcessInfo>, I<NSScriptCommand> and +I<NSTask> classes all define a method named C<arguments>. Any +such multiply-occuring method names are not exported from the +top-level framework module (I<Foundation> or I<AppKit>) by +default: you will need to import the class specifically, e.g. +C<import Foundation.NSProcessInfo> to import I<NSProcessInfo>'s +C<arguments> function. + +If you wish to use the C<arguments> method from multiple classes, +use the C<import qualified> or C<import X as Y> constructs, just +as if you were importing a same-named function from different +Haskell modules normally. + =for comment Modeline for vi(m) vi:sw=2 tw=65 |