I can't diagnose the problem from this snippet. Can you share the definition of getAllGlasses()? What are the other two squiggle messages?

This also sounds possibly like VS is in a bad state; perchance does this go away if you close Visual Studio and re-open it?

By on 12/2/2008 1:59 PM ()

Thanks Brianmcn.

Following is the definition for getAllGlasses & getAllCups:

let getAllGlasses() =

let mutable numGlassesFetched = 0

for i = 0 to maxNumTables - 1 do

numGlassesFetched <- numGlassesFetched + tables.[i].FetchAllGlassesFromTable()

printfn "Assistant: Collected %d Glasses From Table %d" numGlassesFetched i

numGlassesFetched

let getAllCups() =

let mutable numCupsFetched = 0

for i = 0 to maxNumTables - 1 do

numCupsFetched <- numCupsFetched + tables.[i].FetchAllCupsFromTable()

printfn "Assistant: Collected %d Cups From Table %d" numCupsFetched i

numCupsFetched

The other two squiggle message is the same message 'This expression is a function....'. Thank you for your time and effort.

By on 12/2/2008 2:06 PM ()

Hm, this makes no sense. :)

Did you try restarting VS?

Since they're just warnings (blu squiggles) and not errors (red squiggles), does it 'work' as expected if you compile and run?

By on 12/2/2008 2:16 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper