[Progress Communities] [Progress OpenEdge ABL] Use Initial with Object Variables

  • Thread starter Thread starter John Cleaver
  • Start date Start date
Status
Not open for further replies.
J

John Cleaver

Guest
I assumed this would already be a feature request, but using the search function didn't show anything. I would like to be able to do something like the following: define protected property MyClass as ClassType no-undo init new ClassType() get. set. Similar to how in Java you can do: ClassType MyClass = new ClassType(); This would make code more clean (by avoiding large lists of object instantiation in the constructor) as well as avoiding errors related to non-initialized variables. It also would make classes more consistent with primitive types in how they are used.

Continue reading...
 
Status
Not open for further replies.
Back
Top