Book a Demo

Author Topic: Parameterised Classes  (Read 3030 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Parameterised Classes
« on: April 26, 2009, 03:24:45 pm »
Hey everybody,


I'm trying to model a pretty simple parameterised class. I want it to take a single parameter which is a class (Blarg), and so far so good.

I would then expect to be able to use the Blarg class as a type in the attribute and operation definitions within my parameterised class. But I can't.

Since the attribute and operation type fields allow free input, I could just write Blarg in there.
I could also create an inner class to my parameterised class and call that Blarg.

But neither is correct, so I don't wanna.  >:(

Am I doing something wrong here?


/Uffe
My theories are always correct, just apply them to the right reality.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Parameterised Classes
« Reply #1 on: April 27, 2009, 03:08:55 pm »
Quote
Since the attribute and operation type fields allow free input, I could just write Blarg in there.
That's what you'll need to do.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Parameterised Classes
« Reply #2 on: April 27, 2009, 03:40:49 pm »
OK, thanks for that. Just wanted to make sure I wasn't missing something.

Is this functionality planned for implementation anywhere down the line, do you know?

/Uffe
My theories are always correct, just apply them to the right reality.