Forum > Other
Small error in Reference Manual
(1/1)
darksky666:
Reference Manual (3.0.4) - (Page 132) Extended Records - TTest4 example has a protected visibility modifier in it.
Thaddy:
There are actually small errors
--- 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";}};} ---typeTTest4 = record private a : Integer; function getp : integer; public b : string; procedure setp (const aValue : integer); property p : integer read Getp Write SetP; public case x : integer of 1 : (Q : string[255]); // can't use reference counted strings in a variant record . Compiler will give error on refcounted strings 2 : (S : String[255]); // can't use reference counted strings in a variant record end; function TTest4.getp : integer; begin Result := a; end; procedure TTest4.setp (const aValue : integer); begin a :=aValue; end; beginend.I will file a bug report.
[edit]
reported as Bug report 0034015
Thaddy:
@darksky666
And it is now already fixed in trunk!
As Michael wrote in the report: well spotted!
darksky666:
Oh wow, thanks for reporting it, .. also I think I found a typo:
Page 170 - "Additionally, the is operator can be used to check if a class implements an interface, and the varas operator can be used to typecast an interface back to the class:"
I think that it was supposed to be just "as operator"? It isn't really an issue tbh though..
Navigation
[0] Message Index