From 54bd9a61e14a1f368ed91cc42b07704f363464cc Mon Sep 17 00:00:00 2001 From: Mattias Gaertner Date: Mon, 11 Feb 2019 17:07:04 +0000 Subject: [PATCH] pas2js: updated docs about helpers git-svn-id: trunk@41303 - --- utils/pas2js/docs/translation.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/utils/pas2js/docs/translation.html b/utils/pas2js/docs/translation.html index 0bf82a0456..f96e79d26e 100644 --- a/utils/pas2js/docs/translation.html +++ b/utils/pas2js/docs/translation.html @@ -1859,7 +1859,7 @@ function(){
  • Helpers cannot be forward defined (e.g. no THelper = helper;).
  • Helpers must not have fields.
  • Class Var, Const, Type
  • -
  • Visibility: strict private .. published
  • +
  • Visibility : strict private .. published
  • Function, procedure: In class and record helpers Self is the class/record instance. For other types Self is a reference to the passed value. @@ -1872,21 +1872,21 @@ function(){ AnObj.Create calls the constructor function as normal method. Note that Delphi does not allow calling helper construcors as normal method.
  • no destructor
  • -
  • Property: getters/setters can refer to members of the helper, its +
  • Property : getters/setters can refer to members of the helper, its ancestors and the helped class/record.
  • -
  • Class property: getter can be static or non static. Delphi/FPC only allows static.
  • -
  • Ancestors. Helpers can have an ancestor helper, but they +
  • Class property : getter can be static or non static. Delphi/FPC only allows static.
  • +
  • Ancestors : Helpers can have an ancestor helper, but they do not have a shared root class, especially not TObject.
  • no virtual, abstract, override. Delphi allows them, but 10.3 crashes when calling.
  • -
  • inherited: +
  • inherited : inherited inside a method of a class/record calls helper of ancestor.
    inherited inside a helper depends on the $mode: In any case if inherited; has no ancestor to call, it is silently ignored, @@ -1901,7 +1901,7 @@ function(){
  • property : uses only the getter, ignoring the setter. This breaks OOP, as it allows to change fields without calling the setter. This is FPC/Delphi compatible.
  • -
  • with value do ; : uses some temporary variable. Delphi/FPC do not support it.
  • +
  • with value do ; : uses a temporary variable. Delphi/FPC do not support it.