Search:

Type: Posts; User: Vandalf; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    4,453

    The language in the example is cmd.exe, the one...

    The language in the example is cmd.exe, the one used for writing batch files.

    I stumbled into this issue because I wanted console output that would work with standard redirections and pipes, as...
  2. Replies
    7
    Views
    4,453

    I think it would be more helpful to point out...

    I think it would be more helpful to point out these facts in the documentation/help file of the console module. Such that users wanting to have redirect-able output would know to use CGI_Write. Then...
  3. Replies
    7
    Views
    4,453

    stdout is not what thinBasic thinks

    I've been wanting to add some command-line interactivity to some of my programs, but I found that the console module's standard console output cannot be redirected: any attempt to do so results in a...
  4. Replies
    7
    Views
    5,288

    Thank you, Eros. That's a pretty clever solution....

    Thank you, Eros. That's a pretty clever solution.
    I was thinking of a more algorithmic strategy: a binary search.
    Using decimal numbers for readability, these could be the filenames checked with...
  5. Replies
    7
    Views
    5,288

    For reasons unknown, my copy of thinBasic is...

    For reasons unknown, my copy of thinBasic is unable to generate timing data when profiling. I did try running it as administrator. All it ever shows in the time columns is 0.0000. The rest of the...
  6. Replies
    7
    Views
    5,288

    Thanks, Eros, for the advice about the...

    Thanks, Eros, for the advice about the File_Pathsplit function, and for the insight into how thinBasic operates internally. From your reply, I figure that a typical program would be more likely to...
  7. Replies
    7
    Views
    5,288

    Tail recursion optimization?

    I have a tail recursive piece of code that could potentially call itself recursively up to thousands of times, and overall be executed up to millions of times each time the program is run. This...
  8. Replies
    1
    Views
    2,483

    C-style #DEFINEs

    Consider this code:

    Function HALQuote(myname as string) as string
    return "I'm sorry, "& myname &", I'm afraid I can't do that."
    end function
    When "HALQuote(*)" is evaluated, thinBasic has to...
  9. Replies
    1
    Views
    3,154

    GUID (not a real type)

    Here's some code:

    Function aba(nme As Guid)As String
    Return "hello world"
    End Function
    Dim qqq As Guid
    MsgBox 0 , aba(qqq)
    Line 5 throws a runtime error: "Missing Close Parens", "Token...
Results 1 to 9 of 9