The Fabl Manual
Function Index
Class Index
Globals Index
Libraries
Contents

Title Page
Introduction
Sample Code
Architecture
Syntax
Strong Typing
Polymorphism
Operators
Help
Errors
Configuration
RDF
Namespaces
Owl
Datatypes
Resources
Dot ops
Coercion
Type Casting
nil

Types
string
id
int
double
boolean
Literal
Containers
Functions
void

Home
Regarding
The Path
Classes
Delegation
Functional Values
Read/Write
Load/Store
Libraries
Imports
CGI
Coercion

Fabl includes type coercion - that is a mechanism that automatically converts an expression E of type T0 to a new type T1 when E appears in a context where T1 is expected, and where a coercion from T0 to T1 has been defined. There are two data type coercions: int coerces to double, and id coerces to string. Also, if C0 is an OWL subclass of C1, then C0 coerces to C1. In particlar, every class coerces to Resource.