I am trying to do simple tutorial in Visual Studio let someNumber = (2 + 2) print_int someNumber but it says print_int is undefined. printfn works. Could the book I’m using be outdated?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
print_int is a part of the F# power pack. Adding a reference to the PowerPack (c:\program files\FSharp-1.9.6.2\bin\FSharp.PowerPack.dll on my machine) should fix the issue.
Here is a blog entry from Don that mentions the current plans for the Power Pack:
http://blogs.msdn.com/dsyme/archive/2008/12/10/fsharp-to-ship-as-part-of-visual-studio-2010.aspx