Book a Demo

Author Topic: Using Parameterized Classes (Templates)  (Read 2015 times)

twarg

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Using Parameterized Classes (Templates)
« on: June 05, 2010, 07:07:31 am »
Hi Folks,
I have a question about creating and using Parameterized Classes in EA8.

I want to create an Array as a parameterized class (template).   I believe I succeeded in doing that (create the class, under details tab select Templates->Type->Parameterized and I gave it 2 params...a BindType of type class [to bind a class to the template] and a Length of type int [initialize array length]).

My goal is to be able to create other classes with attributes of type Array<someType, someLength>.

My issue is, when you add an attribute of a class and want it to be of type say "Array<int,10>" (an integer array of length 10), EA does not seem to acknowledge the parameters in the parameterized class as part of the type.
EA finds the type Array, but not Array<BindType, Length>.

How do you instantiate an Array<int,10> from an Array parameterized class within EA?  :-/

Thanks,
twarg