Hi,

You need to declare put as a function, to avoid value restriction. For example:

1
2
3
4
5
6
7
let put x = fprintfn stdout x


put "hello"


put "%s %d" "hello" 1
By on 6/14/2008 4:13 AM ()
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