Author Topic: Maybe generate C code?  (Read 2192 times)

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Maybe generate C code?
« on: September 06, 2004, 08:35:51 am »
Hello all!
My colleague had an idea and I just can't test it because I don't understand much of C and C++ code, but maybe someone here can help us...
He said that maybe it could be possible to generate C code from EA by using code templates...
does anyone here has an idea?
thanx!

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Maybe generate C code?
« Reply #1 on: September 06, 2004, 09:51:52 am »
Hello,

code templates can indeed be used for code generation, however the templates are applied to objects (remember, we are dealing with an object oriented design) and I do not see how could they be used to generate a procedural language-based code (i.e. C).

Sorry!

Bruno

thomaskilian

  • Guest
Re: Maybe generate C code?
« Reply #2 on: September 10, 2004, 03:56:30 am »
Hi Bruno,
as it is possible to code spaghetti with C# and colleagues it is also possible to code structured classes with dinosaurs like FORTRAN or COBOL. What you actually can't easily do is creation of objects with these languages. However, you can code classes  :D