From 3ed38ef3fadcc35bfd3fc0d21ff19f7b41bd459d Mon Sep 17 00:00:00 2001 From: Mattias Gaertner Date: Tue, 8 Jan 2019 10:04:27 +0000 Subject: [PATCH] pastojs: doc: records missing features git-svn-id: trunk@40809 - --- utils/pas2js/docs/translation.html | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/utils/pas2js/docs/translation.html b/utils/pas2js/docs/translation.html index 11fe3eef05..daeafa1c34 100644 --- a/utils/pas2js/docs/translation.html +++ b/utils/pas2js/docs/translation.html @@ -667,7 +667,8 @@ function(){ this.d = 0.0; }; this.$equal = function (b) { - return (this.i == b.i) && (this.s == b.i) && (this.d == b.d); + return (this.i == b.i) && + (this.s == b.i) && (this.d == b.d); }; }; this.r = new this.TMyRecord(); @@ -685,12 +686,13 @@ function(){ ["System"], function(){ var $mod = this; - rtl.createTRecord($mod, "TMyRecord", function() { + rtl.recNewT($mod, "TMyRecord", function() { this.i = 0; this.s = ""; this.d = 0.0; this.$eq = function (b) { - return (this.i == b.i) && (this.s == b.i) && (this.d == b.d); + return (this.i == b.i) && + (this.s == b.i) && (this.d == b.d); }; this.$assign = function (s) { this.i = s.i; @@ -728,7 +730,15 @@ function(){
  • constructor
  • -
  • Not yet implemented: constructors, operators.
  • +
  • Not yet implemented: + +
  • Until Pas2js 1.2 when assigning a record it is cloned, creating a new JS object. Since Pas2js 1.3 only values are copied, keeping the object, so pointer of record is compatible.