Artyom Shalkhakov ha scritto:
[...]
Prelude> :l foo.hs
[1 of 1] Compiling Main             ( foo.hs, interpreted )
Ok, modules loaded: Main.
*Main> isDirectory "/var"

<interactive>:1:0:
   Ambiguous occurrence `isDirectory'
   It could refer to either `Main.isDirectory', defined at foo.hs:6:0
                         or `PF.isDirectory', imported from
System.Posix.Files at foo.hs:2:0-30


That's exactly the problem of "function call hi-jacking". [1] In Haskell
it's solved using qualified imports.


What a surprise to see there are others that know both Haskell and D ;-).


I find D a very interesting language.
I also have support for pure functions.



Regards  Manlio Perillo
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to