Results 1 to 7 of 7

Thread: When should I use the tbasicu file extension?

  1. #1

    Question When should I use the tbasicu file extension?

    @Eros or @Petr: When should I use the .tbasicu file extension instead of the normal .tbasic one?

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    eh ...
    Better Petr will reply, it was his invention
    In any case i think tbasicu stands for thinBasic UNIT that is an include file auto sufficient that means it has no external reference and can be re-used in different situations.
    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
    So it hasn't really any functionality behind it?

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    So far not other than thinAir/thinBasic will not execute them directly.
    Having a kind of UNIT/Single/independent piece of code that can become a library is not bad
    Maybe something for future.

    I know Petr is using such file very often and is not bad at all. Every tbasicu can be considered "portable" in other projects.
    Last edited by ErosOlmi; 10-10-2017 at 20:26.
    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

  5. #5
    Thanks Eros for the explanation. That is good enough for me.

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Basically,

    .tbasicU files contain functions with implementation and or types (with type functions or without).

    .tbasicI files I use then for declares of DLL functions, for example.


    Petr
    Last edited by Petr Schreiber; 12-10-2017 at 07:20.
    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

  7. #7
    Thanks Petr, good to know.

Similar Threads

  1. tHeap + extension tTypedHeap
    By ReneMiner in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 2
    Last Post: 21-06-2015, 16:25
  2. making Subs/Functions private to .tBasicU-file?
    By ReneMiner in forum thinBasic General
    Replies: 5
    Last Post: 15-02-2013, 20:44
  3. ScriptBasic GSL extension module
    By John Spikowski in forum Scripting
    Replies: 0
    Last Post: 30-05-2011, 01:52
  4. Windows 7, 64bit - no extension connection, no edit
    By Petr Schreiber in forum Installation
    Replies: 3
    Last Post: 04-09-2010, 12:42

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
  •