The Dink Network

Reply to Re: Data type hacks...

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 14th 2024, 07:12 PM
death.gif
Seseler
Peasant He/Him Heard Island And Mcdonald Islands
 
You could use editor_seq as makeshift array. You have just to make sure that you use editor numbers from a screen where it's not used for other purposes, so it won't conflict with anything else.

For other information types, fixed-point numbers are rather trivial to implement, and I think you could do floats if you had way too much time to handle. And since you have arrays with editor_seq and editor_frame, you could do strings, although you can't use them for say()-series functions, so there's not much point.

One of my million unfinished projects is implementing a scripting language that transpiles to DinkC, which would have fixed-point type; among other niceties such as macros, constants and compilation-time error-checking.