Forum > FPC development

Possible Bug (Mac M1/AArch)?

<< < (3/3)

Arioch:

--- Quote from: domasz on November 03, 2022, 08:29:09 pm ---
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure foo(s : TStream);  s.read(b[0], 4000);end;I've always (over 10 years) used this way in Delphi

--- End quote ---

Call me paranoid, but i wrote
--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  s.read(b[Low(b)], 4000);
Experience with moving legacy projects to Unicode Delphi and new datatypes (like gen-dyn-arrays instead of raw pointers) and how all hell was breaking loose with the undocumented and subconscious programming against implementation details suddenly were blessing me as unreproduccible shroedin-bugs in the twisted code whose design logic no one remembered any more.

Navigation

[0] Message Index

[*] Previous page

Go to full version