:: Re: [DNG] Experiencing with GtkBuil…
Página Inicial
Delete this message
Reply to this message
Autor: Hendrik Boom
Data:  
Para: dng
Assunto: Re: [DNG] Experiencing with GtkBuilder
On Tue, Nov 24, 2015 at 06:06:44AM +0100, Edward Bartolo wrote:
> Hi All,
>
> That pascal class was horribly written with nested functions down to
> four or five levels! Imagine having to translate that without using
> nested functions. I worked around by using local classes and passed
> parameters with pointers.


There's nothing at all wrong with nested functions.

It's C that's deficient here, not the use of nested functions.

I have no idea at all why you insist on rewriting perfectly usable
Pascal code into C. Were there limitations in Pascal that drove you to
twist your program into knots? You do seem to be twisting your program
into knots to do it in C. Is there something inherently wrong with
using Lazarus Pascal?
>
> Netman's frontend was written without using nested functions as I
> learnt my lesson to never again use them.
>
> Edward
>
> On 24/11/2015, Edward Bartolo <edbarx@???> wrote:
> > Hi Aitor et al,
> >
> > What about directly translating the Object Pascal code into C instead
> > of doing a reimplementation of the logic? I remember, once I had a
> > Pascal class that took me six months to write which I translated into
> > C++ within a month. I think, this is the most practical approach.
> >
> > There are also Pascal into C translators which I am thinking of trying
> > although the translated code would still need inspection before
> > deployment.
> >
> > Edward
> >
> >
> > On 24/11/2015, Steve Litt <slitt@???> wrote:
> >> On Tue, 24 Nov 2015 00:11:12 +0100
> >> aitor_czr <aitor_czr@???> wrote:
> >>
> >>> Hi Steve,
> >>>
> >>> I would argue that it's possible a "OOP" development without a OOP
> >>> language.
> >>
> >> Yes, that's one of the points I was making: You can do it in C.
> >>
> >>>
> >>> The "OOP" development is in the mind of the developer.
> >>
> >> True, and you never *really* realize that til you've programmed in
> >> Lua, where there are probably a half a dozen different ways to OOP.
> >>
> >> SteveT
> >>
> >> Steve Litt
> >> November 2015 featured book: Troubleshooting Techniques
> >>      of the Successful Technologist
> >> http://www.troubleshooters.com/techniques
> >> _______________________________________________
> >> Dng mailing list
> >> Dng@???
> >> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

> >>
> >
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng