View Poll Results: What would be the preffered extension for thinBasic includes?

Voters
9. You may not vote on this poll
  • tBasicI

    1 11.11%
  • tBasicH

    0 0%
  • tBasicU

    0 0%
  • tBasicI for files with declarations and tBasicU for more complex code units

    5 55.56%
  • tBasicH for header files with declarations and tBasicU for more complex code units

    0 0%
  • tBasicD for files with declarations and tBasicU for more complex code units

    0 0%
  • tbI

    0 0%
  • tbInc

    3 33.33%
Results 1 to 6 of 6

Thread: ThinBasic include files

  1. #1
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,146
    Rep Power
    735

    ThinBasic include files

    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

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,814
    Rep Power
    10
    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

  3. #3
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    404
    I think the tbasic and then suffix gets too long.

    perhaps .tbi for include?

  4. #4
    How about this conflation:

    .thinc

    Charles

  5. #5
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    160
    Quote Originally Posted by kryton9 View Post
    I think the tbasic and then suffix gets too long.

    perhaps .tbi for include?
    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

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,146
    Rep Power
    735
    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 :
    #include "object_car.*"
    
    We will see what the voting will show.


    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

Similar Threads

  1. Icon changer for bundled thinBasic files
    By GSAC3 in forum thinBundle
    Replies: 15
    Last Post: 31-01-2010, 19:49
  2. Include files not working
    By Michael Clease in forum thinBasic General
    Replies: 2
    Last Post: 23-11-2009, 10:51

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •