Implemented "skeleton" SUBs

by (no login)

The first step towards supporting SUBS/FUNCTIONS is complete. The "skeleton" SUBs have no shared data and accept no parameters, however they behave properly in any other possible way. They indwell and create/free data (including arrays) appropriately for the scope of the routine. QB64 currently ignores DECLARE statements and instead scans for SUBs/FUNCTIONs in a prepass. Of course, "skeleton" subs are not useful, but they are the first step in QB64 fully supporting SUBs/FUNCTIONs.

RE: Bug discovered in QB64 Demo #5 (by me!)
Any strings not created as part of an array will be declared in the wrong memory region, the DBLOCK emulated conventional memory region. This means you'll get an out of memory error in the following code:
a$=SPACE$(65536)

RE: Recent SPAM
Very annoying. Unfortunately I don't have the privilages to delete such posts. So for now I'm just ignoring them.

RE: Frequent references to FB
Also usually annoying. If you think the goals of QB64 are pointless don't bother complaining because the goals aren't going to change. Most comparisons made fall under the catagory of "cheap" point scoring for the purpose of pointing out that FB is "better". Of course, these usually ignore the most important part of QB64, compatibility. I word which, in my opinion, you cannot put a price on. Those posts claiming FB is more compatible with QBASIC than QB64 are stupid for obvious reasons. Sure, it you want to program in a 32/64-bit most like QBASIC language NOW go use FB, but 6 months from now that language will be QB64.

Posted on Feb 2, 2008, 1:19 AM
from IP address 58.110.128.68

Respond to this message   

Return to Index


Response TitleAuthor and Date
Excellent News Galleon ;-)... on Feb 2
Good deal on Feb 2
Skeleton Subs are Useless?OLPC on Feb 5
 RE: Skeleton Subs are Useless? on Feb 5
  * Shouldn't you pass the arrays Byref with pointers instead of duplicating them? ;-)OLPC on Feb 5
   *I should, and I do. on Feb 6
    Re: *I should, and I do.LaananFisher on Feb 6
     QB 7.1 has a BYVAL statement, maybe QB64 could use thatqbguy on Feb 6
     RE: Actually a feature that I've always wanted is to be able to pass arrays byref or byval on Feb 6
      Re: RE: Actually a feature that I've always wanted is to be able to pass arrays byref or byvalLaananFisher on Feb 7
       Since it is being programmed in C/C++, =>rpgfan3233 on Feb 7