Not a F# expert by any means, but just playing around in VS, there seem to be 
two possible causes:
 
1. The order the files appear in the project matters. The file defining 
ShareEntity needs to come first (you can right click in Solution Explorer and 
Move Up/Down).
 
2. The type is in a module of the same name, so you either need to do a "open 
ShareEntity" or use "ShareEntity.ShareEntity".
 
Hope this helps,
John
 
> From: [email protected]
> To: [email protected]; [email protected]
> Subject: RE: F# Help
> Date: Wed, 27 Oct 2010 21:52:32 +1100
> 
> Thanks my understanding is that modules are like classes. I intended them to
> be in different modules.
> 
> Any other suggestions?
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of silky
> Sent: Wednesday, 27 October 2010 10:14 AM
> To: ozDotNet
> Subject: Re: F# Help
> 
> On Wed, Oct 27, 2010 at 12:09 AM, Tom Gao <[email protected]> wrote:
> > Hi guys,
> 
> [...]
> 
> > At the moment the compiler is complaining that on the line
> >
> > let lagrangeInterpolatingPolynomial(share : List<ShareEntity>, degree,
> > desiredPos) =
> >
> > in SSSSLib.fs it isn't able to find ShareEntity.
> 
> Is the problem that they are in different modules?
> 
> http://msdn.microsoft.com/en-us/library/dd233221.aspx
> 
> 
> > Anyone have any ideas?
> >
> > Thank you in advance,
> >
> > Tom
> 
> --
> silky
> 
> http://dnoondt.wordpress.com/
> 
> "Every morning when I wake up, I experience an exquisite joy - the joy of
> being this signature."
> 
                                          

Reply via email to