Skip to content

Support FUNCTIONs and SUBs #21

Closed
Closed

Description

@flagxor

This is needed to support a bunch of the qbasic programs like GORILLA.BAS + NIBBLES.BAS

Activity

  1. self-assigned this
    on Sep 20, 2018
  2. added
    QBasic
    and removed on Sep 20, 2018
  3. FellippeHeitor commented on Sep 20, 2018

    @FellippeHeitor
    Collaborator

    For Gorilla.bas to run as is, DEF FN should also be considered.

  4. hax commented on Sep 21, 2018

    @hax

    Could we throw a error message for unimplemented feature now?

    (When I see this project I'm excited because it make me recall my childhood, so I searched the source for GORILLA.BAS and try it, but just get the black screen with silence, make me a little frustrating :)

  5. FellippeHeitor commented on Sep 21, 2018

    @FellippeHeitor
    Collaborator

    @hax: Use QB64 until wwwbasic gets there :-)

  6. flagxor commented on Sep 22, 2018

    @flagxor
    CollaboratorAuthor

    Yeah, would like to get this sorted soon.
    It's a largish change as it adds call frames, but getting close.

    DEF FN will be part of the same change.

  7. FellippeHeitor commented on Sep 22, 2018

    @FellippeHeitor
    Collaborator

    The only difference between a FUNCTION and an FN is scope, really, as DEF FN can access local variables. We haven't gotten it working in QB64 so far (we ship a slightly modified version of gorilla.bas that has DEF FN turned into FUNCTION to work).

  8. flagxor commented on Sep 27, 2018

    @flagxor
    CollaboratorAuthor

    Implemented (roughly) in:
    95489f9

    Will sort out any bugs in other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

QBasic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions