I'm working on creating global functions (many, in fact). And I ran into a silly problem that's wasting a lot of time.
Suppose I have this simple function declaration, which validates correctly.
function B() begin
return 1;
end;
function A() begin
$value = B();
return $value + 1;
end;
Then later, when I open the editor again to add another function or correct something, it sorts them alphabetically, and it stops working because functions can only be called if they've been previously declared (which shouldn't be the case), so I have to start reordering everything.
function A() begin
$value = B();
return $value + 1;
end;
function B() begin
return 1;
end;
In the previous example, now that function A is declared before B, it stops working because A calls B.
With a small code, I can do it, but things get complicated as I go along, and we all know that we'll soon have thousands of lines.
In languages like Pascal, there's the forward keyword to indicate that the function will be implemented later, or in C++, you can add the unimplemented signature and then do that further down. Well, I haven't found a way to do it with Bauxite yet.
I can have my code in another editor, modify it, copy and paste it into the editor, and keep going. But I think it's something that needs to be fixed.