Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Graeme Geldenhuys
On Thu, Nov 6, 2008 at 5:08 PM, Alexander Klenin <[EMAIL PROTECTED]> wrote: >> >> cbType := TfpgComboBox.Create(self); >> with cbType do >> begin >>Name := 'cbType'; >>SetPosition(8, 24, 272, 22); >>FontDesc := '#List'; >> end; > > So when you write such code by hand, you do not use

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Alexander Klenin
On Thu, Nov 6, 2008 at 23:48, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > And a perfect example of why I DON'T user the 'with' statement! Hard > to read, hard to understand and hard to debug (tooltip expressions > cannot evaluate it even in Delphi v7 at least). :) Proposed change can potenti

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread dmitry boyarintsev
WITH is also usefull to initialize records with rec do begin field1 := 1; field2 := 2; field3 := 3; field4 := 4; // and so on end; rather than c'sh style: rec.field1 := 1; rec.field2 := 2; rec.field3 := 3; rec.field4 := 4; I also like to use with structure in bigger 'if' statement: w

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Thaddy
I agree to some extend. Nested with statements are evil. A single with should be allowed because it actually adds value. smime.p7s Description: S/MIME Cryptographic Signature ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepa

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Graeme Geldenhuys
On Thu, Nov 6, 2008 at 3:35 PM, Alexander Klenin <[EMAIL PROTECTED]> wrote: > > Maybe, but consider the alternative in today's FPC: > with Button.Create do > with BackColor do begin >Text := 'Hello World'; >Self.Text := ToString; > end; > > It is easy to miss which properties refer to whi

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Alexander Klenin
On Thu, Nov 6, 2008 at 16:41, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > > The following code is just confusing as hell... > > with b: Button := new Button do > with c: Color := b.BackColor do begin >... >b.Text := 'Hello World'; >self.Text := c.ToString; >... > end; > end; >

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Daniƫl Mantione
Op Thu, 6 Nov 2008, schreef Graeme Geldenhuys: On Thu, Nov 6, 2008 at 11:57 AM, Henry Vermaak <[EMAIL PROTECTED]> wrote: 1) 'case' by string and type http://prismwiki.codegear.com/en/Case_(keyword) Did you not know that this is supported in FPC (for some time now). ;-) And it's not just lim

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Graeme Geldenhuys
On Thu, Nov 6, 2008 at 3:08 PM, Henry Vermaak <[EMAIL PROTECTED]> wrote: >> >> I know that! You clearly missed the smiley face. :-) > > heh, sorry about that. must've had my serious hat on :) No problems. ;-) Regards, - Graeme - ___ fpGUI - a c

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Henry Vermaak
2008/11/6 Graeme Geldenhuys <[EMAIL PROTECTED]>: > > I know that! You clearly missed the smiley face. :-) heh, sorry about that. must've had my serious hat on :) henry ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Graeme Geldenhuys
On Thu, Nov 6, 2008 at 11:57 AM, Henry Vermaak <[EMAIL PROTECTED]> wrote: >>> 1) 'case' by string and type http://prismwiki.codegear.com/en/Case_(keyword) >> >> Did you not know that this is supported in FPC (for some time now). >> ;-) And it's not just limited to ordinal or string types I'll >

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-06 Thread Henry Vermaak
2008/11/6 Graeme Geldenhuys <[EMAIL PROTECTED]>: > On Thu, Nov 6, 2008 at 8:18 AM, Alexander Klenin <[EMAIL PROTECTED]> wrote: >> 1) http://prismwiki.codegear.com/en/With_(keyword) >> but without 'matching' clause. > > The following code is just confusing as hell... > > with b: Button := new Butto

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-05 Thread Graeme Geldenhuys
On Thu, Nov 6, 2008 at 8:18 AM, Alexander Klenin <[EMAIL PROTECTED]> wrote: > 1) http://prismwiki.codegear.com/en/With_(keyword) > but without 'matching' clause. The following code is just confusing as hell... with b: Button := new Button do with c: Color := b.BackColor do begin ... b.

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-11-05 Thread Alexander Klenin
On Wed, Oct 29, 2008 at 03:16, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > And some links for your reading pleasure... ;-) > > http://www.remobjects.com/oxygene.aspx A pleasure indeed ;-) I did not know Oxigene/Prism syntax has evolved fo far ahead of Delphi/FPC. While browsing their wiki, I f

Re: [fpc-devel] Re: CodeGear abandons Delphi.NET

2008-10-28 Thread Thaddy
I may have misread or may be misinformed. But: divergence between win32 and .net was on the roadmap.. And what's wrong with buying in to a dedicated project. It is sound business if the product is tops. Sounder than Kylix at the time. (although imho that business was - still is -sound, but tech

[fpc-devel] Re: CodeGear abandons Delphi.NET

2008-10-28 Thread Graeme Geldenhuys
And some links for your reading pleasure... ;-) http://www.remobjects.com/oxygene.aspx http://www.codegear.com/products/delphi/prism Graeme. On Tue, Oct 28, 2008 at 7:15 PM, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Wow, like I didn't see that coming! Borland/CodeGear sure like to > dro