Scol standard library package
0.3.1
Common and usefull functions for all Scol applications
|
Functions | |
_CBboolChanged (b, cbfun) | |
Define the 'state changed' callback for a BOOL Scol object. It can be nil for no call (default). More... | |
_CBboolFalse (b, cbfun) | |
Define the 'state changed to false' callback for a BOOL Scol object. It can be nil for no call (default). More... | |
_CBboolTrue (b, cbfun) | |
Define the 'state changed to true' callback for a BOOL Scol object. It can be nil for no call (default). More... | |
_CBboolUndefined (b, cbfun) | |
Define the 'state changed to undefined' callback for a BOOL Scol object. It can be nil for no call (default). More... | |
_CRbool () | |
Create a new BOOL Scol object. More... | |
_GETbool (b) | |
Return the current value for a BOOL Scol object. More... | |
_ISboolUndefined (b) | |
Return if the current value for a BOOL Scol object is an 'undefined' state. More... | |
_RESETbool (b) | |
Perform a reset to a BOOL Scol object. The value will be 'undefined'. More... | |
_SETbool (b, state) | |
Define a new value for a BOOL Scol object. More... | |
AND (v1, v2) | |
Return the logical AND operator between two integers (&&) More... | |
BAND (v1, v2) | |
Return the bit OR operator between two integers (&) More... | |
BNOT (v) | |
Return the bit NOT operator to an integer (~) More... | |
BOR (v1, v2) | |
Return the bit OR operator between two integers (|) More... | |
BXOR (v1, v2) | |
Return the bit XOR operator between two integers (^) More... | |
EQ (v1, v2) | |
Return the EQUALITY between two value (==) More... | |
FALSE () | |
Define the FALSE value : always 0. More... | |
IMP (v1, v2) | |
Return the logical IMPLICATION. More... | |
INH (v1, v2) | |
Return the logical INHIBITION. More... | |
LOWER (v1, v2) | |
Return the LOWER operator between two integers (<) More... | |
LOWEREQ (v1, v2) | |
Return the LOWER OR EQUAL operator between two integers (<=) More... | |
NEG (b) | |
Return the NEGATION operator to an integer (-) More... | |
NEQ (v1, v2) | |
Return the NON-EQUALITY between two value (!=) More... | |
NOT (b) | |
Return the logical NOT operator to an integer (!) More... | |
OR (v1, v2) | |
Return the logical OR operator between two integers (||) More... | |
SHLEFT (v1, v2) | |
Return the bit SHIFT LEFT operator between two integers (<<) More... | |
SHRIGHT (v1, v2) | |
Return the bit SHIFT RIGHT operator between two integers (>>) More... | |
TRUE () | |
Define the TRUE value : NOT FALSE (1) More... | |
UPPER (v1, v2) | |
Return the UPPER operator between two integers (>) More... | |
UPPEREQ (v1, v2) | |
Return the UPPER OR EQUAL operator between two integers (>=) More... | |
Package to load : lib/std/bool.pkg
Dependancies :
FALSE | ( | ) |
Define the FALSE value : always 0.
Prototype : fun [] I
TRUE | ( | ) |
Define the TRUE value : NOT FALSE (1)
Prototype : fun [] I
_CRbool | ( | ) |
_RESETbool | ( | b | ) |
_SETbool | ( | b | , |
state | |||
) |
Define a new value for a BOOL Scol object.
A new value can be :
Depending the given new value, one of these callbacks will be also called :
The other callback 'state changed' will be always called after.
_GETbool | ( | b | ) |
_ISboolUndefined | ( | b | ) |
_CBboolChanged | ( | b | , |
cbfun | |||
) |
_CBboolTrue | ( | b | , |
cbfun | |||
) |
_CBboolFalse | ( | b | , |
cbfun | |||
) |
_CBboolUndefined | ( | b | , |
cbfun | |||
) |
AND | ( | v1 | , |
v2 | |||
) |
Return the logical AND operator between two integers (&&)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
OR | ( | v1 | , |
v2 | |||
) |
Return the logical OR operator between two integers (||)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
NOT | ( | b | ) |
Return the logical NOT operator to an integer (!)
Prototype : fun [I] I
I | : an integer |
IMP | ( | v1 | , |
v2 | |||
) |
Return the logical IMPLICATION.
Example : If i live in French then i live in Europe. So if i don't live in Europe then i don't live in French but if i live in Europe i can not tell i live in French.
Prototype : fun [I I] I
I | : an integer |
I | : an integer |
INH | ( | v1 | , |
v2 | |||
) |
Return the logical INHIBITION.
If the first item is true then the expression is true except if the second item is also true.
Prototype : fun [I I] I
I | : an integer |
I | : an integer |
BAND | ( | v1 | , |
v2 | |||
) |
Return the bit OR operator between two integers (&)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
BOR | ( | v1 | , |
v2 | |||
) |
Return the bit OR operator between two integers (|)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
BXOR | ( | v1 | , |
v2 | |||
) |
Return the bit XOR operator between two integers (^)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
BNOT | ( | v | ) |
Return the bit NOT operator to an integer (~)
Prototype : fun [I] I
I | : an integer |
SHLEFT | ( | v1 | , |
v2 | |||
) |
Return the bit SHIFT LEFT operator between two integers (<<)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
SHRIGHT | ( | v1 | , |
v2 | |||
) |
Return the bit SHIFT RIGHT operator between two integers (>>)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
EQ | ( | v1 | , |
v2 | |||
) |
Return the EQUALITY between two value (==)
Prototype : fun [u0 u0] I
u0 | : an integer |
u0 | : another integer |
NEQ | ( | v1 | , |
v2 | |||
) |
Return the NON-EQUALITY between two value (!=)
Prototype : fun [u0 u0] I
u0 | : an integer |
u0 | : another integer |
LOWER | ( | v1 | , |
v2 | |||
) |
Return the LOWER operator between two integers (<)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
UPPER | ( | v1 | , |
v2 | |||
) |
Return the UPPER operator between two integers (>)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
LOWEREQ | ( | v1 | , |
v2 | |||
) |
Return the LOWER OR EQUAL operator between two integers (<=)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
UPPEREQ | ( | v1 | , |
v2 | |||
) |
Return the UPPER OR EQUAL operator between two integers (>=)
Prototype : fun [I I] I
I | : an integer |
I | : another integer |
NEG | ( | b | ) |
Return the NEGATION operator to an integer (-)
Prototype : fun [I] I
I | : an integer |