bass icon indicating copy to clipboard operation
bass copied to clipboard

Section relocation

Open antis81 opened this issue 1 year ago • 0 comments

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… :slightly_smiling_face:).

antis81 avatar Jun 29 '23 13:06 antis81