BR Limit (2**15/2)-1 = 16,383 Line #'s

General development discussion.

Moderators: Susan Smith, admin, Gabriel

Post Reply
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

BR Limit (2**15/2)-1 = 16,383 Line #'s

Post by GomezL »

As we know, everything has limits. In BR, a program has Line #'s, and they are limited to 16,383 lines.

You can add many lines of code to 1 line In the following example I am using only 1 line:

Code: Select all

10 A=1 !:
	B=2 !:
	C=3
It seems that BR doesn't gracefully complain about an error at compile time, instead the function/library linkages "Go crazy!"

You can move functions to a separate library to get around the line # limitation.
mikemiller
Posts: 13
Joined: Wed Mar 17, 2021 6:01 am

Re: BR Limit (2**15/2)-1 = 16,383 Line #'s

Post by mikemiller »

That's interesting. The fact that they're apparently stored in a signed 16-bit integer sort of implies that there can be negative line numbers.
GomezL
Posts: 258
Joined: Wed Apr 29, 2009 5:51 am
Contact:

Re: BR Limit (2**15/2)-1 = 16,383 Line #'s

Post by GomezL »

The limit is the total number of line numbers specified, not the actual line numbers.

Actual Line #'s may be between 00001 to 99999.
Post Reply