Mercurial > pub > dyncall > bindings
comparison README.txt @ 13:390380ef6362
- general readme update
author | cslag |
---|---|
date | Sat, 26 Mar 2016 15:56:15 +0100 |
parents | 0cfcc391201f |
children |
comparison
equal
deleted
inserted
replaced
12:079718588eb6 | 13:390380ef6362 |
---|---|
21 | 21 |
22 Create 2 objects, one as a handle to each external library (e.g. extlib), one as a handle to a callvm | 22 Create 2 objects, one as a handle to each external library (e.g. extlib), one as a handle to a callvm |
23 | 23 |
24 - Without objects: | 24 - Without objects: |
25 | 25 |
26 Wrap dyncall as close as direct | 26 Wrap dyncall as close as possible, exposing function by function |
27 | 27 |
28 - Statically typed (and no direct way wrap types in a generic way and or RTTI): | 28 - Statically typed (and no reflection/RTTI): |
29 | 29 |
30 Expose all dcArg, etc. calls | 30 Expose all dcArg, etc. calls |
31 Expose formatted call ('...') if possible, but as ArgF (instead of CallF), b/c return type is statically typed | 31 Expose formatted call ('...') if possible, but as ArgF (instead of CallF), b/c return type is statically typed |
32 | 32 |
33 - with RTTI: | 33 - with reflection/RTTI: |
34 | 34 |
35 Write a single call function and let users pass arguments, directly - if needed for type-conversion, this | 35 Write a single call function and let users pass arguments, directly - if needed for type-conversion, this |
36 should be done via call signature | 36 should be done via call signature |
37 | 37 |
38 | 38 |
39 | 39 |
40 * Functional: | 40 * Functional: |
41 | 41 |
42 @@@ ToDo | 42 ... nothing really different from imparative guidelines above? |
43 | 43 |
44 | 44 |
45 | 45 |
46 * Other language features | 46 * Other language features |
47 | 47 |
48 - Namespaces/modules/packages | 48 - Namespaces/modules/packages |
49 | 49 |
50 Use and name dyncall or dc (@@@ choose one) | 50 Use and name dyncall or dc (prefer former) |
51 Use casing depending on language requirements (e.g. 'Dyncall' for ruby as modules are const) | 51 Use casing depending on language requirements (e.g. 'Dyncall' for ruby as modules are const) |
52 | 52 |
53 - Function overloading or default arguments | 53 - Function overloading or default arguments |
54 | 54 |
55 Use if available to define things like CallVM stack size; use independently named functions, otherwise | 55 Use if available to define things like CallVM stack size; use independently named functions, otherwise |