Book a Demo

Author Topic: Sealed Class - Code Generation - C++/CLI  (Read 9404 times)

Zidane

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Sealed Class - Code Generation - C++/CLI
« on: August 26, 2008, 11:43:17 pm »
For correct generation of sealed classes in C++/CLI , I had to change C++ "Class Declaration" Code Generation Template.

I moved line %classIsLeaf ? "sealed"%
beyond
%className%

Best regards,
Didi

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sealed Class - Code Generation - C++/CLI
« Reply #1 on: August 27, 2008, 04:14:00 am »
Did you send in a report to Sparx support? Perhaps this is something that needs to go into the 'canned' templates for future EA builds.
No, you can't have it!

Zidane

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Sealed Class - Code Generation - C++/CLI
« Reply #2 on: August 27, 2008, 08:58:28 pm »
I'll do that when I am sure that this has no side effects.

BTW: The same thing with abstract classes.

...
%className%
%classIsLeaf ? "sealed"%
%if classAbstract=="T" and elemType != "Interface"%
 abstract
%endIf%
...
« Last Edit: August 27, 2008, 08:59:04 pm by Zidane »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Sealed Class - Code Generation - C++/CLI
« Reply #3 on: August 27, 2008, 10:12:03 pm »
I think you should send it in regardless. Even if there are side effects, Sparx might be able to tweak it. Who knows, they might identify side effects you don't see; they might even be able to resolve them.

I think it might make for a better product, and there's no downside.
No, you can't have it!