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
TStringGrid Question
by
J-G
[
Today
at 04:03:48 pm]
Very rough version of a s...
by
marcov
[
Today
at 03:56:13 pm]
Lazarus Main and Gnome/Wa...
by
zeljko
[
Today
at 03:48:06 pm]
Benchmark: converting arr...
by
LemonParty
[
Today
at 03:25:25 pm]
FPC Unleashed (inline var...
by
Thaddy
[
Today
at 03:15:25 pm]
Read/Parse PDB file to ge...
by
marcov
[
Today
at 02:48:12 pm]
Array of structure -> str...
by
LemonParty
[
Today
at 11:34:18 am]
[SOVLED]Curved text in La...
by
paweld
[
Today
at 11:00:52 am]
Fast Canvas Library V1.05...
by
microxa
[
Today
at 07:03:07 am]
"Identifier idents no mem...
by
Thaddy
[
Today
at 05:43:52 am]
[SOLVED] TPrintDialog Pro...
by
spuds
[
Today
at 01:30:20 am]
TPairsplitter could be be...
by
jamie
[
Today
at 12:36:34 am]
FloatToStr issue
by
J-G
[
Today
at 12:06:38 am]
Release ray4laz 6.0
by
Fred vS
[June 05, 2026, 09:06:27 pm]
Pascal for AI Agent CLI T...
by
Martin_fr
[June 05, 2026, 08:01:11 pm]
storing assets for releas...
by
flowCRANE
[June 05, 2026, 07:30:13 pm]
Benchmark aligned vs unal...
by
LeP
[June 05, 2026, 06:33:08 pm]
TstringGrid read cell col...
by
hedgehog
[June 05, 2026, 06:29:11 pm]
Range checks and `Move` o...
by
ASerge
[June 05, 2026, 05:17:19 pm]
Why is var after type in ...
by
Warfley
[June 05, 2026, 02:36:17 pm]
SnapModbus
by
ThomasK
[June 05, 2026, 01:40:22 pm]
Spell checking for IDE so...
by
Martin_fr
[June 05, 2026, 11:48:38 am]
Fix alt+letter dont show ...
by
mpau
[June 05, 2026, 04:02:50 am]
Conscious Artificial Inte...
by
schuler
[June 04, 2026, 11:14:34 pm]
LazNodeEditor (visual nod...
by
simone
[June 04, 2026, 08:05:18 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: PAS2JS: Error: Not supported: pointer for Name: ^TString; (Read 1184 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: 19
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: 19238
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