Results 1 to 2 of 2

Thread: Outdated thinBASIC help file information

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

    Outdated thinBASIC help file information

    Hi,

    I know that thinBASIC help file is still under development, but I'v found, that it contain some information, which is not true now.

    In chapter named "Variables" there is red colored text which says:
    You can also declare a variable implicitly by simply using its name in your script. That's not generally a good practice because you could misspell the variable name in one or more places, causing unexpected results when your script is run. For that reason, the Option Explicit statement is available to require explicit declaration of all variables. The Option Explicit statement should be the first statement in your script.
    Interpeter in current version is so smart, that it detects use of undeclared variable, and it NOT allows to use it.

    Options Explicit is also not needed ( and not existent ) statement of thinBASIC language


    Thanks,
    Psch
    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,782
    Rep Power
    10

    Outdated thinBASIC help file information


    Initial version of thinBasic called AutoProc had "Option explicit" functionality. It was possible to autodeclare variables.
    Later we change it in order to have more control and programming diligence.

    Help fixed.

    Thanks.
    Eros
    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

Similar Threads

  1. HELP FILE : Unicode information swapped
    By Michael Clease in forum Fixed or cleared errors in help material
    Replies: 1
    Last Post: 09-03-2011, 12:19
  2. DLL information
    By sandyrepope in forum General
    Replies: 9
    Last Post: 30-04-2008, 02:59

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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