Forum > Pas2JS

PAS2JS: Error: Not supported: pointer for Name: ^TString;

(1/1)

peter.dell:
Hello,

The docu mentions that pointers as "Supported syntax elements".
But compiling the following program results in "Test.pas(4,5) Error: Not supported: pointer"
Do you have any suggestions on how to fix or work around this?


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---program test;type TString = string;var Name:  TString;var PName: ^TString;begin  WriteLn('Works,');end.
Kind regards, Peter/JAC!

kagamma:
The documentation clearly states:


--- Quote ---Pointer (as a reference to a class, array, record, pointer of record, or interface).
--- End quote ---

There is no mention of the string type.

Thaddy:
You mean pointer type. Strings are of course supported. Pointers are not.

peter.dell:
Thanks. So that also applies then for all pointers to other elementary types.
I was hoping there was an option. For now, I changed the copy to copy/assign the strings.

Navigation

[0] Message Index

Go to full version