On Mon, Jul 23, 2007 at 02:49:47PM +0300, Al Boldi wrote: > > directly instead of a external unit. They embed the form/component > > creation code inside a private method called from the constructor. The > > code in that private method is also wrapped in C# Region so that it is > > hidden by default with code folding. > > Java always did it like this, and now others are starting to mature.
Yes, and I hated it (JBuilder 6 to be exact). Small changes in the code constantly crashed the form designer. > > 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. In practice you can't touch the generated code or the markers around it, since that leads to frequent crashes. Actually my personal experience is that mucking around in the Delphi DFM (e.g. to change inheritence) is safer than mucking around in the java generated code of JBuilder 6 (not to speak of Visual Cafe) _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives