View Issue Details

IDProjectCategoryView StatusLast Update
0037514pas2jstranspilerpublic2020-08-10 16:01
Reporterhenrique Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformMakestubgOSWindows 
Fixed in Versiontrunk 
Summary0037514: type helper with problems
Description"type helper" does not exist in Delphi, and the equivalent for native types is to use the record. It would have to convert to "record helper for String" for example.
Steps To Reproducemakestub.exe -i SysUtils.pas -o SysUtilsConv.pas
TagsNo tags attached.
Fixed in Revision46319
Attached Files

Activities

Michael Van Canneyt

2020-08-08 11:09

administrator   ~0124657

Fixed, thanks for reporting

henrique

2020-08-10 14:32

reporter   ~0124722

now he has translated the "type helper", but in Delphi it has to be "record helper". The problem happened with String Helper at SysUtils.

Michael Van Canneyt

2020-08-10 14:39

administrator   ~0124723

It translates to record helper here ?

  TStringHelper = record helper for String
  private
    function GetChar(AIndex: SizeInt): Char;
    function GetLength: SizeInt;
  public

henrique

2020-08-10 14:53

reporter   ~0124725

Exact!

henrique

2020-08-10 15:14

reporter   ~0124726

I'm sorry, I don't think we understand each other. It is not translating to "record helper", which is correct.

Michael Van Canneyt

2020-08-10 15:37

administrator   ~0124733

It is translating to "record helper "? That is what delphi expects, that is what it generates ?

I pasted the code that is generated, you can see there that it uses "record helper" ?
Did you update the stubcreator unit in utils/pas2js ?
There you should see in line 344 the woALwaysRecordHelper option.

henrique

2020-08-10 15:58

reporter   ~0124734

I'm sorry, the external repository had not updated, with this when recompiler the transpiler, the changes were not applied. It's all working!

Issue History

Date Modified Username Field Change
2020-08-07 21:39 henrique New Issue
2020-08-08 11:09 Michael Van Canneyt Assigned To => Michael Van Canneyt
2020-08-08 11:09 Michael Van Canneyt Status new => resolved
2020-08-08 11:09 Michael Van Canneyt Resolution open => fixed
2020-08-08 11:09 Michael Van Canneyt Fixed in Version => trunk
2020-08-08 11:09 Michael Van Canneyt Fixed in Revision => 46319
2020-08-08 11:09 Michael Van Canneyt Note Added: 0124657
2020-08-10 14:32 henrique Status resolved => feedback
2020-08-10 14:32 henrique Resolution fixed => open
2020-08-10 14:32 henrique Note Added: 0124722
2020-08-10 14:39 Michael Van Canneyt Note Added: 0124723
2020-08-10 14:53 henrique Note Added: 0124725
2020-08-10 14:53 henrique Status feedback => assigned
2020-08-10 14:59 Michael Van Canneyt Status assigned => resolved
2020-08-10 14:59 Michael Van Canneyt Resolution open => fixed
2020-08-10 15:14 henrique Status resolved => feedback
2020-08-10 15:14 henrique Resolution fixed => open
2020-08-10 15:14 henrique Note Added: 0124726
2020-08-10 15:37 Michael Van Canneyt Note Added: 0124733
2020-08-10 15:58 henrique Note Added: 0124734
2020-08-10 15:58 henrique Status feedback => assigned
2020-08-10 16:01 Michael Van Canneyt Status assigned => resolved
2020-08-10 16:01 Michael Van Canneyt Resolution open => fixed