From 62858510101d013ca9abbd74205a2facad8c1dc1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 3 May 2020 03:11:36 +0300 Subject: [PATCH] tweaking docs... Signed-off-by: Alex A. Naanou --- README.md | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index d82324c..cc28293 100755 --- a/README.md +++ b/README.md @@ -380,28 +380,6 @@ C(, ..) ``` -## Limitations - -### Can not mix unrelated native types directly - -At this point we can't mix native types, i.e. it is not possible to make -a callable `Array`... - -For example this will produce a broken instance: -```javascript -var CallablaArray = object.Constructor('CallablaArray', Array, function(){ .. }) -``` - -This will produce a broken instance in a different way: -```javascript -var CallablaArray = object.Constructor('CallablaArray', Array, { - __call__: function(){ .. }, -}) -``` - -Some of this is due to how _object.js_ is currently implemented, this -needs further investigation... - ## Utilities @@ -416,6 +394,31 @@ This is used to format `.toString(..)` return values for nested functions to make source printing in console more pleasant to read. + +## Limitations + +### Can not mix unrelated native types directly + +At this point we can't mix native types, for example it is not possible +to make a callable `Array` object... + +For example this will produce a broken instance: +```javascript +var CallablaArray = object.Constructor('CallablaArray', Array, function(){ .. }) +``` + +This will produce an instance broken in a different way: +```javascript +var CallablaArray = object.Constructor('CallablaArray', Array, { + __call__: function(){ .. }, +}) +``` + +Some of this is due to how _object.js_ is currently implemented, this +needs further investigation... + + + ## License [BSD 3-Clause License](./LICENSE)