On 11/06/2012 07:44 PM, leledumbo wrote:
What is the best way to port 'private static final' member?
private class var (assuming you want to declare a variable).
private static final Set<String> = STATIC_SET;
static {
STATIC_SET = new HashSet<String>;
STATIC_SET.Add("A Value");
...
}
Static initialization block has no equivalent in Pascal, but since unit have
initialization section, you can initialize it there.
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Questions-About-Porting-Java-and-Extended-Class-Syntax-Features-tp5711825p5711827.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
@leledumbo
Thank you. It has been a while. I unremembered the initialization and
finalization sections.
@JC Chu
Thank you I was unaware of the 'class constructor' and 'class destructor'.
As an aside, I would like to note that after a couple of years away I
still see the same contributers in this list, and it is excellent to
find that support and commitment.
--
Regards,
Brian
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal