GBAtemp.net - The Independent Video Game Community

VinsCool
VinsCool
convert between types? pointers? wouldn't that work?
Jiehfeng
Jiehfeng
No I mean keywords like "int", "String", "+", ".", etc. Literally write a line of code in a String, and have all those keywords convert into hardcoded programming keywords to be read by the compiler. Should be simple enough to just have something to edit the code file itself by having a built in pre-compiler extract and input that code into the relevant location upon runtime.
Jiehfeng
Jiehfeng
You can convert an int to a String and vice versa, but you can't do such things with keywords, operators, symbols, etc. It needs a lot of manual work that involves manual parsing.
VinsCool
VinsCool
#define is exactly what you are looking for :P
Jiehfeng
Jiehfeng
This is for the old C languages yeah? Not there for the popular languages afaik.
  • Like
Reactions: VinsCool
VinsCool
VinsCool
Really? I would expect this to be a de-facto method for macro programming.
Heck I think it's a great feature, because you can make your life easier with simplified syntax encapsulating things you can't be arsed to copy and paste all the time
  • Like
Reactions: Jiehfeng
General chit-chat
Help Users
  • No one is chatting at the moment.
    BakerMan @ BakerMan: +1