Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: A problem conc. Dynamic compiling using linked functions from within O2

  1. #1

    A problem conc. Dynamic compiling using linked functions from within O2

    Hi all,

    Seems I need to delete function declarations (linked to O2) from within TB to be able to reuse them.
    Been browsing the help files, but for the moment I found nothing.
    If it is not possible I can do it without the linked functions (by a simple O2_EXEC), but it should be handy ...


    thanks in advance, Rob
    (attached something showing the problem)
    Attached Files Attached Files
    Last edited by RobbeK; 06-01-2014 at 23:24.

  2. #2
    Hi Rob,

    The variable linkage of the first compile appears to carry over to the second compile.

    But I found that inserting an empty compile before your second compile, fixes the problem:

    o2_basic ""
    o2_basic s

  3. #3
    Ah, excellent !!

    I was working on something to bypass the usual "Eval" by using O2.
    But already converted it to a "global" 02 call in the mean time -- but i'll convert it back.

    In the program the textbox at the bottom left accepts any formula (within the Oxy syntax ) - the compiling is done by pushing the O2 button.
    Scaling of the z values (f(x,y)) is done by half values/double values (buttons). Scaling the grid x,y is auto etc... animations by the cursor keys ...

    (can be handy for young math students , wanting to have a look ... a picture tells more than 1000 words (infact this are 10000 numbers representated :-)).


    thanks Charles !
    (prog best at full screen)
    Attached Files Attached Files

  4. #4
    I'll be damned!
    Mike
    (3.2GHz i5 Core Quad w/ 8GB RAM, 2 x GTX 550Ti SLI-bridged w/ 2GB VRAM, x64 Windows 7 Ultimate Sp1)

  5. #5
    Hi Rob,

    I think using shared variables and the simple o2_basic / o2_exec scheme, as you have done here, is the best solution for this kind of program.

    I recommend removing the bye() procedure, so that Oxygen will automatically terminate, freeing all of its resources at the end of each o2_exec.

  6. #6
    Thanks Charles , Mike ..




    best Rob

  7. #7
    Member
    Join Date
    Nov 2012
    Location
    Missouri, USA
    Posts
    113
    Rep Power
    22
    Charles,

    Could you please provide me a link to something
    that explains Oxygenbasic's interaction with thinBasic?
    I mean like it's purpose for thinBasic and what it's
    suppose to do for it.

    Thanks,

    Bill

  8. #8
    Hi Bill,

    I have revised the original thinBasic_Oxygen compiler module post, containing a brief description.

    http://www.thinbasic.com/community/s...ead.php?t=9653

    I hope this helps.

  9. #9
    And I would be delighted if any of the innovations in Oxygen might also be usefully deployed in thinBasic itself.
    Thanks for setting the trap. Once Eros accepts that PowerBASIC (and its author) is dead, maybe he can use ALL the features of O2 rather than piece mealing them in.
    Last edited by John Spikowski; 08-01-2014 at 23:43.
    ScriptBasic Project Manager
    Project Site
    support@scriptbasic.org

  10. #10
    Intriguant!

    Mike
    (3.2GHz i5 Core Quad w/ 8GB RAM, 2 x GTX 550Ti SLI-bridged w/ 2GB VRAM, x64 Windows 7 Ultimate Sp1)

Page 1 of 2 12 LastLast

Similar Threads

  1. what's compiling ???
    By Lionheart008 in forum Shout Box Area
    Replies: 11
    Last Post: 05-11-2009, 20:48
  2. dir_listarray and linked lists
    By kryton9 in forum thinBasic General
    Replies: 2
    Last Post: 14-05-2007, 07:25
  3. Linked Lists
    By Petr Schreiber in forum thinBasic General
    Replies: 1
    Last Post: 22-09-2005, 23:10

Posting Permissions

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