On Mon, 23 Jul 2007, Al Boldi wrote:

> Michael Van Canneyt wrote:
> > On Mon, 23 Jul 2007, Al Boldi wrote:
> > > Graeme Geldenhuys wrote:
> > > > So again, what is the pros and cons between the two design choices
> > > > when using the Object Pascal language?
> > >
> > > .dfm is good for beginners, who get confused looking at code they didn't
> > > write.
> > >
> > > .pas is good for pros, who need to take control of their project code.
> >
> > Obviously you are unaware of the real reasons the .dfm mechanism was used,
> > otherwise you would not use such unappropriate demeaning tone.
> 
> No offense meant.  The .lfm is probably there for compatibility reasons.

Indeed. It was a discussion point when Lazarus (or it's precursor Megido) 
was started.

> 
> > There are/were good reasons for it's use. These reasons may have been
> > outdated, but at the time, they were certainly valid. It was (and is,
> > in my opinion) a defendable choice. I have not seen you give any valid
> > and objective reasons why code is better than resources. Unless you
> > plan to give such reasons, I suggest you abstain from such demeaning
> > comments.
> 
> This really has nothing to do with resources.  Resources should still be 
> saved in its own .res file.

Forms are stored in resources. A dfm is changed to resource and then 
compiled in the binary ?


> 
> This is about code init, and as such should not be mutilated into some 
> obscure hardcoded "code init" translator, but instead be obviously exposed 
> for code control.

There is certainly something to be said for this point of view, but they 
obviously
thought otherwise: Do not forget that in the TP days, it was done like you
propose, with their Turbo Vision. If they switched to resources, they probably 
had their reasons for it. Two of them, which I happen to know, I explained in 
my 
initial response to Graeme. 

There is always a history for each choice. This is so for Delphi, and for
FPC/Lazarus too. People may not know it any more after X years, but that 
doesn't mean it didn't exist. At best, you can question it's current validity.

Michael.

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to