[fpc-pascal] Re: Questions About Porting Java and Extended Class Syntax Features

leledumbo leledumbo_cool at yahoo.co.id
Wed Nov 7 04:44:51 CET 2012


> 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.



More information about the fpc-pascal mailing list