F#: Ocaml on .NET

SooHyoung Oh

This document is for how to use F# which is based on Ocaml and has extensions to access .NET on Microsoft Windows environments.

This document is work-in-progress. The latest version can be found at http://pllab.kaist.ac.kr/~shoh/fsharp/html/index.html.

Last updated: 2005-01-14


Table of Contents
1. Introduction
2. Installation
2.1. F#: Installation
2.1.1. Installation of Visual Studio 2005 Beta
2.1.2. Installation of VSIP
2.1.3. Installation of F# package
2.2. F# with Visual Studio
2.2.1. F# Projects
2.3. F# without Visual Studio
2.3.1. F# with Vim
2.3.2. F# with Emacs
2.3.3. Examples
3. How to Compile
3.1. Simple Compilation
3.2. Compilation Syntax
4. Calling .NET from F#
4.1. Basics of Calling .NET
4.1.1. Namespace
4.1.2. Types and Constructors
4.1.3. Instance Methods and Fields/Properties
4.1.4. Static Methods and Fields/Properties
4.2. Null Value
4.3. Overloading
4.4. Type Casting
5. Quickstart Tutorial of Windows Forms
5.1. Hello World Form
5.2. Windows Forms
5.2.1. Forms
5.2.2. Controls
5.2.3. Controls State is Modeless
5.2.4. Events
5.2.5. Putting It All Together
5.3. Dynamic Layout in Windows Forms
5.4. Adding Menus to a Form
6. How to Use Form Designer from F#
6.1. Introduction to Use Form Designer
6.2. Automatic Translation
7. F# Tools
7.1. Fslex and Fsyacc
8. F# Vs. Ocaml
8.1. String
8.2. Assert
8.3. .NET Hashtable vs. Hashtbl
9. Copyright, License, Credits, and Revision History
9.1. Copyright and License
9.2. Credits
9.3. Revision History