-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Allow the usage of unique numerical types that are defined to be the size of the executing system's word size as follows
u0 a = 123; //u32 on 32 bit systems, u64 on 64 bit systems
s0 b = -66;
f0 c = 3.1415926; //particularly useful for numbers like pi to keep the highest precision on different systems
Also allow the implicit casting of them to more clearly defined sizes.
u0 number = 123;
u64 sent = number;
Network.Send(netnumber);
u0 received = Network.Receive<u64>();
The addition of these features could serve to save data without compromising on possibilities, such as for array indexing on different systems, as well as to allow the programmer to use the most efficient numerical types, when the size is otherwise not too significant, but still be able to share it on the network by casting it.
u0 size = 123;
u32[] array = new[size];
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels