Moritz Beutel wrote:
> Hello, > > Rudy Velthuis (TeamB) wrote: > > > Delphi can also ignore its class model. > > I must have forgotten about that. :) > > > > It does not have macros, so they don't have to be replaced. <g> > > The compiler likely has lots of them - it's written in C. Translating > them to Delphi should be fun. Or not :)
Translating macros is not so hard. If they are simple #defines, they can be replaced by constants. If they are macros, they can often be replaced by inline functions. Some of them, that define structures (like DEFINE_GUID ofr whatever it is called) can be done with keyboard macros (once and for all) that convert them to real code.
-- Rudy Velthuis (TeamB) http://www.teamb.com
"A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty." -- Sir Winston Churchill (1874-1965)