[Pas2js] Variable in .LPR: How to make global through entire application?

Ulrich, Christian christian.ulrich at tcsag.de
Fri Nov 9 09:32:19 CET 2018


I dont need an global var. 
I need to register Callback functions to PWA APIs, way before rtl.run is called...
I think there are more problems like where you want to inject javascript outside the rtl

-----Ursprüngliche Nachricht-----
Von: Pas2js [mailto:pas2js-bounces at lists.freepascal.org] Im Auftrag von Mattias Gaertner via Pas2js
Gesendet: Freitag, 9. November 2018 09:11
An: pas2js at lists.freepascal.org
Cc: Mattias Gaertner
Betreff: Re: [Pas2js] Variable in .LPR: How to make global through entire application?

On Fri, 9 Nov 2018 06:41:30 +0000
"Ulrich, Christian" <christian.ulrich at tcsag.de> wrote:

> Pas2js places asm blocks always inside the "pas" scope. Is it maybe
> an good idea to make it possible to place asm blocks after end. Or
> before unit/programm to put it directly in the generated .js ? I had
> yesterday an simelar problem and had to use an separate .js file wich
> is no big problem but would be nicer to have that also beside the
> related pascal class.

Why do you need a global var?

Mattias
_______________________________________________
Pas2js maillist  -  Pas2js at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js


More information about the Pas2js mailing list