Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: ms_butterfly on September 06, 2004, 08:35:51 am

Title: Maybe generate C code?
Post by: ms_butterfly 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!
Title: Re: Maybe generate C code?
Post by: Bruno.Cossi 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
Title: Re: Maybe generate C code?
Post by: thomaskilian 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