BPDX
BPDX
@lazuser - Make sure {$M+} is enabled in your code... which turns on RTTI so the code can crawl the published properties. Otherwise, they are optimized out... ( I know...
Another example, this one just bit me BAD! Raises: Runtime error: "Index out of range (index:4294967295, low:0, high:382)" procedure generatestatistics; var loop:longword; begin for loop:=high(filenames)-1 downto 0 do begin --...
Does no good if my low end goes below the range - only solution is what Niels mentioned. Thanks, but no Band-aids are acceptable. ;-)
I meant for the “band-aid” to the actual LA-PE engine, not for the script – I recoded to use while loops. (sorry for lack of clarity on the band-aid type)....
``` const _a:string='abc'; var a:string; begin a:=_a; writeln(a); writeln(length(a)); writeln(_a); writeln(_a[1]); writeln(a[1]); end. ``` last writeln fails - where should I look? @nielsAD Cannot invoke identifier at line 13, column...
works: ``` {$R-} const _a:string='abc'; var a:string; begin a:=_a; writeln(a); writeln(length(a)); writeln(_a); writeln(_a[1]); writeln(a[1]); end. ``` however, what if I need to turn off range checking for one routine and...
@nielsAD MP-Lape is now manually synchronized all .pas files. To-Do: 1. I am working on line by line tester for lpparser/lpcompiler script. 2. I still have to move some code...
Your are right, _I_ introduced the bug :-( fixing property Options:{...} read FOptions write FBaseOptions; (making it use SetOptions) ended breaking FOptions' scope. Undoing my "fix" and just applying "Compiler.Reset()"...
Undid my setOptions() change to lpvartypes (compiler base), and I still get: Compilation error: "Cannot invoke identifier at line 13, column 6 - not RUNTIME compile time... but when I...
@WarPie - thanks for proven it did work - after doing a line by line comparison - I _finally_ found, _RangeCheck was my issue. It was not migrated into MP2,...