Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Graeme Geldenhuys
Marco van de Voort wrote: > > It also proves that such solution external to the language is possible. That > weakens the case for a language feature My point exactly! The language doesn't need such a feature because your editor of choice should be able to do that, and in Lazarus IDE that is the

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Graeme Geldenhuys
Marco van de Voort wrote: > > IMHO Prism is not even Delphi. Just recycling of the brand. +1 > I'd rather see the time spent on features that really matter (like generics, > SEH/COM support, unicode). Definitely. I would like to add 'Interface Delegation' to that list. It's a vital part of Int

Re[2]: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread JoshyFun
Hello FPC-Pascal, Sunday, February 21, 2010, 9:32:50 PM, you wrote: DWN> This is actually valid ALGOL 60 and/or ALGOL 68. Conditional DWN> expressions were available in both languages. I think Niklaus Wirth DWN> continued with this in ALGOL W, but dropped it from Pascal. DWN> Note that the ALGO

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread David W Noon
On Sun, 21 Feb 2010 20:37:12 +0100, JoshyFun wrote about Re[2]: [fpc-pascal] some new features to delphi prisem: > Sunday, February 21, 2010, 7:29:54 PM, you wrote: > > MK> This is a matter of taste, I can imagine uses when at least > MK> functional "if" would make code *more* readable. Noone for

Re[2]: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread JoshyFun
Hello FPC-Pascal, Sunday, February 21, 2010, 7:29:54 PM, you wrote: MK> This is a matter of taste, I can imagine uses when at least functional MK> "if" would make code *more* readable. Noone forces programmers to MK> convert all their case/if to functional versions if they look MK> unreadable. Th

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Marco van de Voort
In our previous episode, Michalis Kamburelis said: > > You only need to change one variable, and all other instances will > > change to. And syncron-edit applies to any selection of text. So > > already works in more cases. > > > > Which is cool, but only if you and all your contributors use Laza

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Michalis Kamburelis
Graeme Geldenhuys wrote: > On 21 February 2010 17:00, Michalis Kamburelis > wrote: >> Which also means "less chance of mistake". For example, if you decide >> later to change "y" to "y1", you only have to change the code in one >> place, not three. > > > Unfortunately you are wrong Michalis. Ev

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread dmitry boyarintsev
On Sun, Feb 21, 2010 at 9:22 PM, Marco van de Voort wrote: > I'd rather see the time spent on features that really matter (like generics, > SEH/COM support, unicode). +1 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said: > > assignment. Case begin..end blocks can do much more than simple > > oneliners. > > Maybe some-one would like to catch-up with Delphi/Prism? > Wouldn't be possible to start a Prism mode to support new Delphi > syntax features? (or modeswitch, ju

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread dmitry boyarintsev
On Sun, Feb 21, 2010 at 9:03 PM, Graeme Geldenhuys wrote: > I vote against adding this language feature. It's not pascal-like and > actually makes the code harder to read. It also only applies to simple > assignment. Case begin..end blocks can do much more than simple > oneliners. Maybe some-one

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Graeme Geldenhuys
On 21 February 2010 17:00, Michalis Kamburelis wrote: > > Which also means "less chance of mistake". For example, if you decide > later to change "y" to "y1", you only have to change the code in one > place, not three. Unfortunately you are wrong Michalis. Ever heard of 'syncron-edit'? http:/

Re: [fpc-pascal] Re: FPC from subversion without root access

2010-02-21 Thread Osvaldo Filho
Thank you very much 2010/2/21 Marc Weustink : > Osvaldo Filho wrote: >> >> Thank you. >> >> I have my own compiler - files from another computer - not the ubuntu >> package. >> >> How can I say the Make program where are the files of the compiler? >> They are in: ~/apps/fpc/bin and ~/apps/fpc/lib

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Marco van de Voort
In our previous episode, dmitry boyarintsev said: > Does this innovation makes "case" a function? I'd rather say an expression. > procedure SomeProc(const v: string); > > SomeProc ( case Other of > a: 'a'; > b: 'b'; >end; ); >

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread dmitry boyarintsev
Does this innovation makes "case" a function? procedure SomeProc(const v: string); SomeProc ( case Other of a: 'a'; b: 'b'; end; ); Imho, this reduces the code readability. thanks, dmitry ___

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Michalis Kamburelis
ik wrote: > On Sat, Feb 20, 2010 at 20:01, Jürgen Hestermann > mailto:juergen.hesterm...@gmx.de>> wrote: > > > > y := case Other of > bla : 'hello'; > foo : 'bye'; > baz : 'adius'; > end; > > > What do you gain with this

Re: [fpc-pascal] Sets & FPC

2010-02-21 Thread Jonas Maebe
On 21 Feb 2010, at 13:20, Justin Smyth wrote: > The orginal code comes from JVCL , which wont complile under FPC , the actual > unit is jvlistbox.pas Without full source code that compiles rather than uncompilable snippets it takes a lot more time to help you. Please post the full source code

[fpc-pascal] Memcached interface for FPC available already?

2010-02-21 Thread Mark Daems
Hi, Is somebody aware of an fpc interface for the memcached protocol? (See http://memcached.org/) As there seem to be some projects using fpc to provide web content and memcached seems to be one of the more important techniques used on bigger websites there may already be someone who wrote some int

Re: [fpc-pascal] Sets & FPC

2010-02-21 Thread Justin Smyth
The orginal code comes from JVCL , which wont complile under FPC , the actual unit is jvlistbox.pas I have since looked at CustomListBox.inc and made a few change , basically not copying ItemState to a variable but directly doing the checking agaist it procedure TJvCustomListBox.CNDrawItem(v

Re: [fpc-pascal] some new features to delphi prisem

2010-02-21 Thread Jürgen Hestermann
y := case Other of bla : 'hello'; foo : 'bye'; baz : 'adius'; end; What do you gain with this? Doesn't look much different to case Other of bla : y := 'hello'; foo : y := 'bye'; baz : y := 'adius';

Re: [fpc-pascal] Sets & FPC

2010-02-21 Thread Jonas Maebe
On 21 Feb 2010, at 07:26, Justin Smyth wrote: > I've done the bit Micheal suggest now which i highlight TWMDrawItem it says > its comes from TLMDrawItems. > > i still get Error: Incompatible types: got "TOwnerDrawStateType" expected > "" Can you post the full program somewhere? (or the full s