Seems a good idea
tBasicI
tBasicH
tBasicU
tBasicI for files with declarations and tBasicU for more complex code units
tBasicH for header files with declarations and tBasicU for more complex code units
tBasicD for files with declarations and tBasicU for more complex code units
tbI
tbInc
Hi,
I would like to propose new extension for include files used in thinBasic. So far the common practice was to use .INC extension. That is intuitive, but the problem is this extension is used across multiple BASICs.
As I have installed both PowerBASIC and ThinBASIC on my PC, the .INC files always open in PB/IDE for now.
I also prefix all includes for thinBasic, so they have form of:
thinbasic_*.inc
which at least partially helps me to differentiate the difference between my PB and TB includes containing function declarations from DLLs.
Then there is other use, where I tend to write my code in modular way, so I would like to have ability to create code libraries (represented as ~include files), which would be directly editable in ThinAIR as tBasic and tBasicC files are now. For this I currently use tBasic extension, but it seems to cause confusion.
I think, that something like tBasicI (like thinBasic include), tBasicU (like thinBasic unit) or similar could be nice to have and openable in thinAir.
What do you think?
Petr
Last edited by Petr Schreiber; 12-12-2010 at 13:07.
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Seems a good idea
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
I think the tbasic and then suffix gets too long.
perhaps .tbi for include?
How about this conflation:
.thinc
Charles
We have had .tbasicC for as long as I remember so having a C,I,P or U would be a sensible option, the .extension will be registered with windows to open with thinAir and tbasic should be only used by thinBasic. Any other .extension could be hijacked by another program.
Mike C
Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370
I have added mentioned options to the list. Thanks for your ideas guys!
At the moment I am with Mike on this - you will never be forced to write the whole extension, as in save dialog you just pick inlclude/unit from the combobox of filetypes, so the fact it is few chars longer does not make much pain. And it also reduces the risk of "clash of extensions" in associations.
And when including? Don't forget you can do this :
We will see what the voting will show.#include "object_car.*"
Petr
Learn 3D graphics with ThinBASIC, learn TBGL!
Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB
Bookmarks