Message-ID: <88321555.3993.1369415177853.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3992_1579537167.1369415177853" ------=_Part_3992_1579537167.1369415177853 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Functions do not necessarily have to be created inside of classe= s in Boo.
This is valid code:
So is this:
Functions can also be placed inside other functions (these are called Closures or "blocks" in some = languages).
Closures are also handy in a varie= ty of other situations.
There are also 3 special functions that can be used in classes. They ar= e constructor, static constructor, and destructor. Each have no return typ= e, modifiers, or attributes. Only the plain constructor takes parameters. = Constructors are invoked when an instance is created. Static constructors= are called only the first time the type is used. They should be used to i= nitialize uninitialized static fields. Destructors perform commands when o= bjects are freed.
Parameters, Callable Types, Eve=
Closures in Boo
Martin Fowler yammering about Closures