Jump to content
Sign in to follow this  
field

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

Recommended Posts

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 ;)

 

 


 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×