Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is this a bug with Round or is it just me BarrySWTP 10 1,249 07-07-2025, 08:40 PM
Last Post: BarrySWTP
  Exiting FOR NEXT, maybe a bug? Version 4.1.0 on Linux Circlotron 4 844 05-09-2025, 02:22 AM
Last Post: Circlotron
  Compile error when .bas name is same as a directory (linux) Dav 3 779 10-18-2024, 03:32 PM
Last Post: Kernelpanic
  I have fallen in a bug or weird behaviour TempodiBasic 2 673 10-08-2024, 06:09 PM
Last Post: TempodiBasic
  Error Message bplus 3 888 08-20-2024, 09:03 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)