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
id

Unlike the other Fabl datatypes,the datatype id (also known as fabl:id) is is not defined by XML Schema Datatypes. Like strings, elements of id are sequences of characters. In XML Schema Datatype terminology, the value space of id is the same as that of string. The difference is that ids are immutable; there are no Fabl operations that modify the character sequence constituting an id. Id literals are surrounded by single quotes(''). Example:

'abc';
-->abc

Id literals do not make use of the backslash escape character, nor of the evaluation of expressions within angle brackets. Strings can be converted to ids with the following operator:

id toId(string s)

Equality (with == as alternative syntax) applies to ids:

boolean equal(id x,id y)

id coerces to string