'' examples/manual/procs/mod-ctor.bas
''
'' Example extracted from the FreeBASIC Manual
'' from topic 'CONSTRUCTOR (Module)'
''
'' See Also: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgModuleConstructor
'' --------

'' ConDesExample.bas : An example program that defines two sets of
'' constructors and destructors. Demonstrates when and in what order
'' they are called when linking a single module.

Sub Constructor1() Constructor
	Print "Constructor1() called"
End Sub

Sub Destructor1() Destructor
	Print "Destructor1() called"
End Sub

Sub Constructor2() Constructor
	Print "Constructor2() called"
End Sub

Sub Destructor2() Destructor
	Print "Destructor2() called"
End Sub

	'' ----------------------
	Print "module-level code"

	End 0
	'' ----------------------
