Skip to content

Commit e2a0a39

Browse files
authored
Merge pull request #101 from siv2r/update-types-doc
updated type system on readme
2 parents 3a30ab2 + 8247b98 commit e2a0a39

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

docs/README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -288,21 +288,25 @@ The module that holds the representation of types, values and functions is calle
288288

289289
**METACALL** maintains most of the types of the languages but not all are supported. If new types are added they have to be implemented in the [`reflect`](/source/reflect) module and also in the [`loaders`](/source/loaders) and [`serials`](/source/serials) to fully support it.
290290

291-
| Type | Value |
292-
| :-----: | ------------------------------------------------------------------ |
293-
| Boolean | `true` or `false` |
294-
| Char | `-128` to `127` |
295-
| Short | `-32,768` to `32,767` |
296-
| Int | `-2,147,483,648` to `2,147,483,647` |
297-
| Long | `–9,223,372,036,854,775,808` to `9,223,372,036,854,775,807` |
298-
| Float | `1.2E-38` to `3.4E+38` |
299-
| Double | `2.3E-308` to `1.7E+308` |
300-
| String | NULL terminated list of characters |
301-
| Buffer | Blob of memory representing a binary data |
302-
| Array | Arrangement of values of any type |
303-
| Map | List of elements formed by a key (String) value (Any) pair (Array) |
304-
| Pointer | Low level representation of a memory reference |
305-
| Null | Representation of NULL value type |
291+
| Type | Value |
292+
| :-----: | ----------------------------------------------------------------------------- |
293+
| Boolean | `true` or `false` |
294+
| Char | `-128` to `127` |
295+
| Short | `-32,768` to `32,767` |
296+
| Int | `-2,147,483,648` to `2,147,483,647` |
297+
| Long | `–9,223,372,036,854,775,808` to `9,223,372,036,854,775,807` |
298+
| Float | `1.2E-38` to `3.4E+38` |
299+
| Double | `2.3E-308` to `1.7E+308` |
300+
| String | NULL terminated list of characters |
301+
| Buffer | Blob of memory representing a binary data |
302+
| Array | Arrangement of values of any type |
303+
| Map | List of elements formed by a key (String) value (Any) pair (Array) |
304+
| Pointer | Low level representation of a memory reference |
305+
| Null | Representation of NULL value type |
306+
| Future | Promise in Node Loader, and any other type equivalent in other languages. |
307+
| Function| Block of code that takes inputs (Arguments) and produces output (Return value)|
308+
| Class | Defines properties and methods that are common to all objects |
309+
| Object | An instance of Class |
306310

307311
- Boolean is mostly represented by an integer value. There are languages that does not support it so it gets converted to a integer value in the memory layout.
308312

0 commit comments

Comments
 (0)