Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Section relocation #40

Open
antis81 opened this issue Jun 29, 2023 · 0 comments
Open

Section relocation #40

antis81 opened this issue Jun 29, 2023 · 0 comments

Comments

@antis81
Copy link
Contributor

antis81 commented Jun 29, 2023

Locating a section based on a label (example in section_move test) creates quite complex dependency issues when defined after being accessed (-> below a section).

Here is a simplified version of the test visualizing the problem:

!section "circular", circular_label
    
   ; meanwhile some code lines later… :)

circular_label:

    ; whoops…

To support this the ownership of a label (symbol actually) has to be defined. The above situation creates a circular dependency. Currently bass is unable to detect such programming error (that's basically what it is… 🙂).

@antis81 antis81 changed the title Section relocation based on label Section relocation Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant