[Pas2js] Prefix_&_support
Michael Van Canneyt
michael at freepascal.org
Tue May 15 12:37:57 CEST 2018
On Mon, 14 May 2018, warleyalex via Pas2js wrote:
> Let's say in your application, move your cursor beyond the . (period
> character)
> I think it's a good practice to prefix all Pascal identifies with an &
> prefix,
> usually declared in external classes, so the pas2js compiler can correctly
> compile the code,
> it won't get name conflict, just because have already evaluated the
> identifier, for instance in:
This is largely a matter of preference.
For me, & is an operator symbol, not part of a symbol name, so I use _ instead.
But I can also use it as a suffix if you prefer that. It should solve your
completion problem.
But using "&" will definitely not happen.
Michael.
More information about the Pas2js
mailing list