Replies: 6 comments
-
|
I have no idea. :) This is what Claude had to say about it. QBasic → ACE/AmigaBASIC: This is the most promising path since both descend from Microsoft BASIC. AmigaBASIC was derived from Microsoft's Mac BASIC, and QBasic from the GW-BASIC/QuickBASIC line — cousins in the same family. Core constructs like FreeBASIC → ACE/AmigaBASIC: Harder. FreeBASIC is substantially more advanced than QBasic — it adds pointers, operator overloading, namespaces, proper OOP constructs, XC=BASIC → ACE/AmigaBASIC: This is the hardest port despite both being Commodore-ecosystem languages. XC=BASIC's syntax was designed to be similar to QuickBASIC and CBM BASIC, but it's deeply tied to 8-bit idioms — direct In practical terms, the portability ranking to ACE would be:
|
Beta Was this translation helpful? Give feedback.
-
|
thank you, that is very informative. TYPE and PROC are two commands i cannot do without. SWITCH CASE is nice to have. the rest, is unimportant. |
Beta Was this translation helpful? Give feedback.
-
|
Not sure how TYPE really works. But ACE has support for custom types as structs/records. |
Beta Was this translation helpful? Give feedback.
-
|
TYPE is basically like a struct in C afaik. what is the Ace equivalent? PROC in Xc-Basic is somewhat equivalent to SUB in QB it seems i need to look into those comparisons some more |
Beta Was this translation helpful? Give feedback.
-
|
In ACE you define a type with: STRUCT DateStamp
LONGINT days
LONGINT secs
LONGINT ticks
END STRUCTThen you declare it, meaning this creates a variable or a pointer: Then you can access the field via Seems the PROC is a FUNCTION/PROCEDURE. But ACE also has SUB pointers (or function pointers) that you can pass around. I just extended this to be able to implement callback mechanisms or higher-order functions like: That function pointer you can pass to other subs and INVOKE there. |
Beta Was this translation helpful? Give feedback.
-
|
thank you. its pretty cool actually. a bit different from Qbasic syntax though |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hello, can you comment on how ACE is suitable for porting code from XC=BASIC and FreeBASIC?
Beta Was this translation helpful? Give feedback.
All reactions