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
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Crash in app
by
biologic
[
Today
at 04:11:10 am]
Very Slow Online Package ...
by
incendio
[
Today
at 03:46:05 am]
Explaining Generics and S...
by
Ten_Mile_Hike
[
Today
at 03:35:02 am]
Rotating a simple bitmap ...
by
TBMan
[
Today
at 03:27:43 am]
fpsSpreadsheet. Unable t...
by
dgrhoads
[
Today
at 03:11:52 am]
Lazarus on Mint - Palette...
by
incendio
[
Today
at 03:05:31 am]
Weird error: component no...
by
heebiejeebies
[
Today
at 02:43:58 am]
IDE tabs and spaces, auto...
by
n7800
[
Today
at 02:42:52 am]
[SOLVED] What is the name...
by
n7800
[
Today
at 01:52:19 am]
filename from Uri
by
biologic
[
Today
at 01:45:44 am]
Using Bresenham's line al...
by
TBMan
[
Today
at 01:42:13 am]
Where are the sources for...
by
flowCRANE
[
Today
at 12:38:54 am]
Online Package Manager
by
wp
[
Today
at 12:22:46 am]
Reading text out loud?
by
jamie
[
Today
at 12:02:05 am]
Speech from textbox
by
jamie
[March 22, 2025, 11:47:40 pm]
Подписи кнопок панели инс...
by
Miralok
[March 22, 2025, 11:33:50 pm]
How to delete from app il...
by
Boleeman
[March 22, 2025, 10:54:59 pm]
Can't put Lazarus in dock
by
VTwin
[March 22, 2025, 08:33:23 pm]
TrayIcon doesn't work usi...
by
CM630
[March 22, 2025, 08:31:45 pm]
Uninstall
by
VTwin
[March 22, 2025, 08:09:22 pm]
How to wirte a drag into ...
by
d2010
[March 22, 2025, 07:12:18 pm]
I'm wondering, what kind ...
by
Joanna from IRC
[March 22, 2025, 06:54:00 pm]
Cannot set width and heig...
by
anse
[March 22, 2025, 06:38:12 pm]
I want to get rid of priv...
by
n7800
[March 22, 2025, 06:33:54 pm]
Tcsvdataset issue
by
Packs
[March 22, 2025, 04:09:35 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: PAS2JS: Error: Not supported: pointer for Name: ^TString; (Read 294 times)
peter.dell
New Member
Posts: 20
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: 14
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: 16653
Kallstadt seems a good place to evict Trump to.
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
But I am sure they don't want the Trumps back...
peter.dell
New Member
Posts: 20
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