Results 1 to 3 of 3

Thread: Function_CParams

  1. #1

    Exclamation Function_CParams Asking for confirmation

    Hi,
    I am rewriting some code considering what was said here

    but,
    can someone confirm that code ?:
    I think the third call return an erroneous value.

    function test(optional param1 as string)
    
       msgbox 0,"There is " & Function_CParams & " parameter passed." & $crlf & "Param = " & param1
    
    end Function
    
    call test()
    call test("foo")
    call test()
    
    This code's tbasic file : cparms-test.zip
    Last edited by DirectuX; 22-11-2018 at 00:09.
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

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

    I can confirm, this seems like optimization side effect.


    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

  3. #3
    Quote Originally Posted by Petr Schreiber View Post
    Hi DirectuX,

    I can confirm, this seems like optimization side effect.


    Petr
    Thanks you Petr for answering.

    Consequently I opened another issue here.

    Please Petr, note that for all issues I opened, I can't specify the correct version, the drop-down selection doesn't propose latest versions.
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

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
  •