>> I guess, if you put >> >> import Fraction(Integer) > > Where can I find the rules on when I need an import statement?
To be honest, I don't know. For Aldor it would be easier: Anything that you don't import explicitly, is not in scope and therefore the compiler has no chance to see it. BTW, in Aldor, a statment of the form foo: Dom := ... automatically import all functions from Dom. I suppose it's similar for the SPAD compiler. The SPAD compiler seems to know a bit more. Maybe Waldek can tell you more about what is visible and what not for the SPAD compiler. My generic rule for cases like yours is: add an "import" statement. I agree, it's pretty hard for a newcomer to distinguish a real error from such a missing import statement. Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/fricas-devel?hl=en.
