Important information: this site is currently scheduled to go offline indefinitely by end of the year.
MexScript
- Dinoguy1000
- Site Admin
- Posts: 786
- Joined: Mon Sep 13, 2004 1:55 am
- Has thanked: 154 times
- Been thanked: 163 times
- Dinoguy1000
- Site Admin
- Posts: 786
- Joined: Mon Sep 13, 2004 1:55 am
- Has thanked: 154 times
- Been thanked: 163 times
For Get Command
Removed Types
All Types as Followed
Created Alias for backwards compatibility
Alias's take an extra lookup time, so in theory they are slower but not noticably
Types on Debate
Removed Types
Code: Select all
Long
Int
ThreeByte
Byte
Code: Select all
LInt8
LInt16
LInt32
LInt24
LInt64
LUInt8
LUInt16
LUInt24
LUInt32
LUInt64
BInt8
BInt16
BInt24
BInt32
BInt64
BUInt8
BUInt16
BUInt24
BUInt32
BUInt64
String
ShortString
LongString
Single
Double
Code: Select all
Long -> LInt32
Int -> LInt16
Byte -> LUint8
ThreeByte -> LInt24
Types on Debate
Code: Select all
WideString
LongWideString
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
some changes
removed types (changed to Alias')
added types
Mainly because 8bit doesn't have endianess
removed types (changed to Alias')
Code: Select all
LInt8
BInt8
LUInt8
BUInt8
Code: Select all
Int8
UInt8
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
removed types (changed to alias')
added types
Code: Select all
Single
Double
Code: Select all
LSingle
LDouble
BSingle
BDouble
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)
- Dinoguy1000
- Site Admin
- Posts: 786
- Joined: Mon Sep 13, 2004 1:55 am
- Has thanked: 154 times
- Been thanked: 163 times
Internal types and their conversion in expressions
if undesirable, new command added
This command allows the promotion of a variable to a specific type
P.S. Forgot to mention that strings will be converted to an integer, unlike most string->int converters in languages, this acts more like in scripting languages (perl/php) where "103 hello" is actually 103 integer instead of an error or 0
Code: Select all
string + string = string
string + int = int
string + long = long
string + uint = uint
string + ulong = ulong
string + float = float
int + string = int
int + int = int
int + long = long
int + uint = long
int + ulong = ulong
int + float = float
long + string = long
long + int = long
long + long = long
long + uint = long
long + ulong = ulong
long + float = float
uint + string = uint
uint + int = long
uint + long = long
uint + uint = uint
uint + ulong = ulong
uint + float = float
ulong + string = ulong
ulong + int = long
ulong + long = ulong
ulong + uint = ulong
ulong + ulong = ulong
ulong + float = float
float + string = float
float + int = float
float + long = float
float + uint = float
float + ulong = float
float + float = float
Code: Select all
CONVERT VariableName Type
P.S. Forgot to mention that strings will be converted to an integer, unlike most string->int converters in languages, this acts more like in scripting languages (perl/php) where "103 hello" is actually 103 integer instead of an error or 0
"By nature men are alike. Through practice they have become far apart." Confucius (Analect 17:2)