Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-19 Thread mm
Zaher Dirkey a écrit : I hate exit when i try to improve a procedure some code if (b) then exit; some code for long procedures i cant notice exit here and add some resource or memory uses AnObject := TAnObject.Create; try some code if (b) then exit; some code finally AnObject.Fre

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Inoussa OUEDRAOGO
2008/4/19, Joost van der Sluis <[EMAIL PROTECTED]>: > Op zaterdag 19-04-2008 om 16:53 uur [tijdzone +0100], schreef Inoussa > OUEDRAOGO: > > > 2008/4/18, Joost van der Sluis <[EMAIL PROTECTED]>: > > > Hi all, > > > > > > In several places you can specify a list of fieldnames, seperated by > >

Re: [fpc-pascal] The reason why linus torvalds hate-pascal

2008-04-19 Thread Zaher Dirkey
I hate exit when i try to improve a procedure some code if (b) then exit; some code for long procedures i cant notice exit here and add some resource or memory uses AnObject := TAnObject.Create; try some code if (b) then exit; some code finally AnObject.Free; end; Now Exit leave t

[fpc-pascal] Pascal postscript reading library

2008-04-19 Thread Felipe Monteiro de Carvalho
Hello, I did some googling, and I think there is none, but just in case ... does anyone know a pascal library to read postscript files? Preferably open source. Liberal licensing (linking to proprietary code) is indispensable. If not then there will be one in a couple of months =) I need to inter

Re: [fpc-pascal] Base db-indexes on ansicomparestring?

2008-04-19 Thread Joost van der Sluis
Op zaterdag 19-04-2008 om 22:10 uur [tijdzone +0200], schreef Michael Van Canneyt: > > On Sat, 19 Apr 2008, Joost van der Sluis wrote: > > > Another question: > > > > Should we base the indexes on AnsiCompareStr (like TStringList does) or > > CompareStr by default? > > ? On straight string comp

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Michael Van Canneyt
On Sat, 19 Apr 2008, Joost van der Sluis wrote: > Op zaterdag 19-04-2008 om 22:08 uur [tijdzone +0200], schreef Michael > Van Canneyt: > > > > On Sat, 19 Apr 2008, Joost van der Sluis wrote: > > > > > Op vrijdag 18-04-2008 om 22:06 uur [tijdzone +0200], schreef Michael Van > > > Canneyt: > > >

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Joost van der Sluis
Op zaterdag 19-04-2008 om 22:08 uur [tijdzone +0200], schreef Michael Van Canneyt: > > On Sat, 19 Apr 2008, Joost van der Sluis wrote: > > > Op vrijdag 18-04-2008 om 22:06 uur [tijdzone +0200], schreef Michael Van > > Canneyt: > > > > > > IMHO, no trimming should be added, because databases can

Re: [fpc-pascal] Base db-indexes on ansicomparestring?

2008-04-19 Thread Michael Van Canneyt
On Sat, 19 Apr 2008, Joost van der Sluis wrote: > Another question: > > Should we base the indexes on AnsiCompareStr (like TStringList does) or > CompareStr by default? ? On straight string compare, it should be case sensitive. Delphi has the idxCaseInsensitive index option for case insensiti

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Michael Van Canneyt
On Sat, 19 Apr 2008, Joost van der Sluis wrote: > Op vrijdag 18-04-2008 om 22:06 uur [tijdzone +0200], schreef Michael Van > Canneyt: > > > > On Fri, 18 Apr 2008, Joost van der Sluis wrote: > > > > > Hi all, > > > > > > In several places you can specify a list of fieldnames, seperated by > >

[fpc-pascal] Base db-indexes on ansicomparestring?

2008-04-19 Thread Joost van der Sluis
Another question: Should we base the indexes on AnsiCompareStr (like TStringList does) or CompareStr by default? Joost ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Joost van der Sluis
Op zaterdag 19-04-2008 om 16:53 uur [tijdzone +0100], schreef Inoussa OUEDRAOGO: > 2008/4/18, Joost van der Sluis <[EMAIL PROTECTED]>: > > Hi all, > > > > In several places you can specify a list of fieldnames, seperated by > > semicolons. For example: 'field1;field2'. Question is: should this be

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Joost van der Sluis
Op vrijdag 18-04-2008 om 22:06 uur [tijdzone +0200], schreef Michael Van Canneyt: > > On Fri, 18 Apr 2008, Joost van der Sluis wrote: > > > Hi all, > > > > In several places you can specify a list of fieldnames, seperated by > > semicolons. For example: 'field1;field2'. Question is: should this

Re: [fpc-pascal] Trim db-fieldnames, or not?

2008-04-19 Thread Inoussa OUEDRAOGO
2008/4/18, Joost van der Sluis <[EMAIL PROTECTED]>: > Hi all, > > In several places you can specify a list of fieldnames, seperated by > semicolons. For example: 'field1;field2'. Question is: should this be > allowed: 'field1; field2'? Or should a "Field not found: ' field2'" > exception occur?