Mike,
ideas are never bad, they are always interesting.
So, if I get it correctly:
- have module with double version functions: thinBasic bind and exported one
- have a thinBasic --> Free Pascal converter
- compile converted source into executable using modules functions as standard external functions
Personal feeling is that your idea is very very interesting but as you have already seen many times, I try to be concrete.
So in my opinion this is something doable from a technical point of view but I just put my first foot into Free Pascal so I'm not sure I can help you and follow you in this on a short time basis. I first need to learn how to make DLL in FP, which data types are directly compatible with thinBasic, if strings are 100% compatible or some changes are needed. For what I've seen from documentation, WideString and AnsiString data type seems OLE32 compatible but on OLE32 strings len is 4 bytes before string data while in FreePascal (from old documentation) 4 bytes before string data is placed the string reference counter while the len of the string is 8 byte offset. So a lot to check and at the same time continue thinBasic development.
If this is not a problem for you, you can start with making some tests.
For example to test if a simple module can be used in both way and also how to manage strings.
If those tests go fine, I'm pretty sure possibility to make this project happen are very very high.
What do you think?
Ciao
Eros
Bookmarks