[fpc-pascal] Questions About Porting Java and Extended Class Syntax Features
jcchu at acm.org
Wed Nov 7 03:50:03 CET 2012
If you need to initialize a [STRICT] PRIVATE CLASS VAR you need to do this
in a CLASS CONSTRUCTOR (similarly finalizations will need a CLASS
DESTRUCTOR). You can expose it thru a read-only CLASS PROPERTY, but there
is no way to make it a real constant (as long as you can access the
variable itself, you can modify it).
*From:* bsquared <bwcode4u at gmail.com>
*Sent:* November 7, 2012 9:37
*To:* fpc-pascal at lists.freepascal.org
*Subject:* [fpc-pascal] Questions About Porting Java and Extended Class
I am looking into porting Java to Free Pascal. I have some confusion about
how to port certain types of Java Lang Features.
What is the best way to port 'private static final' member?
I was thinking the extended class syntax would cover this, but I dont it
will work for a scenario like this:
private static final ObjectMapper mapper = new ObjectMapper();
private static final Set<String> = STATIC_SET;
STATIC_SET = new HashSet<String>;
Any insight you may have is appreciated.
fpc-pascal maillist -
fpc-pascal at lists.freepascal.**org<fpc-pascal at lists.freepascal.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal