Unhandled Error Bug Fixed
#8
(05-17-2022, 06:35 PM)bplus Wrote: That brings up a question, do commands to compiler work in BI's? Looks like they don't. I don't expect the compiler to work with one set in main Module and another set in BI files.

If library code is expecting arrays to behave Dynamically it should at least be noted with word of warning in the .BI code and even the routines in the BM file.


Commands work in BI and BM files.  Basically all we do with an include is basically a copy paste of the code that you include, into the point where you include it.

So let's say I have a file "HW.BI" which is nothing more than PRINT "Hello World"...


I write a program with that file, like so:
Code: (Select All)
'$INCLUDE:'HW.BI'

DO

LOOP UNTIL _KEYHIT

[font=Monaco, Consolas, Courier, monospace]'$INCLUDE:'HW.BI'[/font]

This code is literally nothing more than:
Code: (Select All)
PRINT "Hello World"

[font=Monaco, Consolas, Courier, monospace]DO[/font]

[font=Monaco, Consolas, Courier, monospace]LOOP UNTIL _KEYHIT[/font]
[font=Monaco, Consolas, Courier, monospace][/font]
[align=left][font=Monaco, Consolas, Courier, monospace][font=Monaco, Consolas, Courier, monospace]PRINT "Hello World"[/font][/font][/align]

So if you have a DEFINT or _DEFINE in your code, that _DEFINE only starts at the point where you include it.  Everything before that is unaffected by it, but everything after it will be under its directive.
Reply


Messages In This Thread
Unhandled Error Bug Fixed - by TarotRedhand - 05-17-2022, 11:22 AM
RE: Unhandled Error Bug - by bplus - 05-17-2022, 04:05 PM
RE: Unhandled Error Bug - by SMcNeill - 05-17-2022, 06:00 PM
RE: Unhandled Error Bug - by SMcNeill - 05-17-2022, 06:06 PM
RE: Unhandled Error Bug [Fixed] - by TarotRedhand - 05-17-2022, 06:24 PM
RE: Unhandled Error Bug Fixed - by bplus - 05-17-2022, 06:35 PM
RE: Unhandled Error Bug Fixed - by SMcNeill - 05-17-2022, 07:12 PM
RE: Unhandled Error Bug Fixed - by TarotRedhand - 05-17-2022, 06:45 PM
RE: Unhandled Error Bug Fixed - by bplus - 05-17-2022, 07:34 PM
RE: Unhandled Error Bug Fixed - by SMcNeill - 05-17-2022, 08:01 PM



Users browsing this thread: 3 Guest(s)