home > 比較編 > F#, Scala, Haskell > modules >

ForNext

Only Do What Only You Can Do

125. submodule

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

F#

OCaml

in A.ml:
module B =
sig
  val display_instruction : unit -> unit
end =
struct
  let msg = "attack"
  let display_instruction () = print_endline msg
end
in client source:
A.B.display_instruction;;

Haskell

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

inserted by FC2 system