The following works fine when using light syntax:

#light

let mutable theCouple = "yoda"

let changeC() =
System.Console.WriteLine(theCouple)
theCouple<-"adas"
theCouple<-"sdfs"
System.Console.WriteLine(theCouple)

If not using light syntax, you need the ';'s in order to separate the individual statements.

Regards,

Z.

By on 10/11/2007 8:18 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