Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Pas2JS
»
PAS2JS: Error: Not supported: pointer for Name: ^TString;
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[New Component] ExtTabCtr...
by
d7_2_laz
[
Today
at 04:35:07 pm]
Lazarus 4.8 on Sourceforg...
by
Dreihirn
[
Today
at 04:12:06 pm]
Installing Lazarus via Ma...
by
Dreihirn
[
Today
at 03:52:56 pm]
A little contribution - T...
by
Tomxe
[
Today
at 03:50:05 pm]
Screen abnomally
by
Thaddy
[
Today
at 03:21:30 pm]
XRechnung-for-Delphi now ...
by
sh17
[
Today
at 03:20:09 pm]
Line Numbers on MacOS
by
Thaddy
[
Today
at 03:14:19 pm]
FPC Unleashed (inline var...
by
440bx
[
Today
at 02:09:32 pm]
Sudden errors
by
Xenno
[
Today
at 01:15:27 pm]
[SOLVED] TSaveDialog
by
Zvoni
[
Today
at 12:33:33 pm]
Which Control should I us...
by
J-G
[
Today
at 11:57:57 am]
Codepage issue in console...
by
Thaddy
[
Today
at 11:48:25 am]
Questions about 16 color ...
by
jamie
[
Today
at 11:21:01 am]
Pdf Viewer in Pascal
by
Dzandaa
[
Today
at 11:20:08 am]
You can embed Windows Con...
by
Fibonacci
[
Today
at 10:13:32 am]
new JPEG XL in pure Pasca...
by
Tomxe
[
Today
at 08:02:53 am]
Conscious Artificial Inte...
by
schuler
[
Today
at 02:42:53 am]
Implementing an Elo ratin...
by
mas steindorff
[
Today
at 02:22:34 am]
Can /my/ AI help me with ...
by
microxa
[
Today
at 12:56:29 am]
IndySecOpenSSL is now ava...
by
TheMouseAUS
[
Today
at 12:08:51 am]
RunFormula: math expressi...
by
stormray
[June 17, 2026, 10:32:05 pm]
Canvas size
by
Thaddy
[June 17, 2026, 07:15:50 pm]
What am I missing here? [...
by
Thaddy
[June 17, 2026, 03:39:02 pm]
TCHATGPT — An Artificial ...
by
Weiss
[June 17, 2026, 07:00:13 am]
RFC: Separation of MCU an...
by
ackarwow
[June 16, 2026, 11:06:14 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: PAS2JS: Error: Not supported: pointer for Name: ^TString; (Read 1187 times)
peter.dell
New Member
Posts: 24
PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
on:
February 18, 2025, 12:07:19 am »
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
[Select]
[+]
[-]
program
test
;
type
TString
=
string
;
var
Name
:
TString
;
var
PName
:
^
TString
;
begin
WriteLn
(
'Works,'
)
;
end
.
Kind regards, Peter/JAC!
Logged
kagamma
New Member
Posts: 21
Re: PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
Reply #1 on:
February 18, 2025, 04:27:58 am »
The documentation clearly states:
Quote
Pointer (as a reference to a
class
,
array
,
record
,
pointer of record
, or
interface
).
There is no mention of the string type.
Logged
Thaddy
Hero Member
Posts: 19291
Glad to be alive.
Re: PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
Reply #2 on:
February 18, 2025, 07:11:11 am »
You mean pointer type. Strings are of course supported. Pointers are not.
Logged
objects are fine constructs. You can even initialize them with constructors.
peter.dell
New Member
Posts: 24
Re: PAS2JS: Error: Not supported: pointer for Name: ^TString;
«
Reply #3 on:
February 18, 2025, 10:30:27 pm »
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.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Networking and Web Programming
»
Pas2JS
»
PAS2JS: Error: Not supported: pointer for Name: ^TString;
TinyPortal
© 2005-2018