Kbase P161812: How to define generic collections in ABL?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/03/2010 |
|
Status: Unverified
GOAL:
How to define generic collections in ABL?
GOAL:
Can OO ABL work with Generics?
FACT(s) (Environment):
OpenEdge 10.1x
OpenEdge 10.2x
Windows
OpenEdge Category: Language (4GL/ABL)
FIX:
A generic collection can be defined as:
DEFINE VARIABLE myStack AS CLASS "Stack<UndoEngine+UndoUnit>".
In this example UndoEngine.UndoUnit is a .NET class. The generics can only be defined for .NET classes.
Notice the use of the plus '+' sign instead of the dot '.' sign in the declaration.