Book a Demo

Author Topic: Argument bindings for Parameterized Classes  (Read 5659 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Argument bindings for Parameterized Classes
« on: August 07, 2005, 09:21:47 pm »
Hi,

Notwithstanding the bugs in the Class General Dialog related to Templates, is anybody actually specifying bound arguments for bound classes?

If so, whether by reverse engineering code or by direct specification, what syntax was generated in the Arguments field?

I can't find any direction in the documentation as to what needs to be put there.

The specification of the parameters is explicit:  Name, type, default.  However the argument specification is totally vague.  I would have expected: parameter name, binding value (or even more explicitly: parameter name, binding type, binding value).

Inquiringly,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Argument bindings for Parameterized Classes
« Reply #1 on: August 11, 2005, 03:49:28 pm »
The way it is currently used is essentially a comma separated list.  It is outputted directly in the code templates.

Now, bearing in mind that you aren't directly generating code, you could put an xml fragment or similar in there to go into you export.

The consideration being that the database field that it (and the parameters) are in is only 255 characters long.

Simon

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Argument bindings for Parameterized Classes
« Reply #2 on: August 11, 2005, 04:55:36 pm »
Quote
[size=13][SNIP][/size]
The consideration being that the database field that it (and the parameters) are in is only 255 characters long.

Simon
Not for me, I've modified it to a memo field and reported the bug that you can't put in enough parameters at 255 characters!

So far the change hasn't caused any problems...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!