Jump to content


Photo

"Published" RTTI/namespace "cluttered" by various RTL classes/props


  • Please log in to reply
No replies to this topic

#1 field

field
  • Members
  • 10 posts

Posted 02 January 2017 - 03:29 PM

Hi,

 

RTL in SMS 2.2.2.4543, 

this is not really a bug-report, but a nuissance if "Emit RTTI information" is used:

 

Due to the fact that the default visibility for all properties in classes is "published", declaring properties in classes without any visibility leads to numerous (unwanted) properties being emitted in the RTTI-info-block in main.js (var $RTTI = [...]). 

 

As an example: 

 

unit System.Types;

 
  TString = class
    class function Explode(Value:String;delimiter:String):Array of String;
  end;
 

should be:

 

  TString = class
  public
    class function Explode(Value:String;delimiter:String):Array of String;
  end;
 
 
 
 

following a list of all concerned RTL-units/classes:

 

unit System.Types; > TString

unit SmartCL.Effects; > TW3MovableControl

unit ECMA.Date; > JDate

unit ECMA.RegEx; >JRegExp

unit FireFox.B2G26; > JnsIController, JnsIControllers, JimgINotificationObserver, JimgIRequest

unit PhoneGapAPI; > JMediaError

unit W3C.Canvas2DContext; > JDrawingStyle

unit W3C.File; > JFileReader

unit W3C.HTML5; > JHTMLTrackElement, JMediaError, JHTMLMediaElement, JApplicationCache
unit W3C.WebSocket; > JWebSocket
 
unit W3C.SVG1; > too many classes to list ;)
 
 
 
 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users