Re: [fpc-pascal] abstract classes

2013-01-21 Thread Daniel Gaspary
On Mon, Jan 21, 2013 at 10:59 PM, Graeme Geldenhuys wrote: > As I said in the other thread - it is a bug! Completely defeats the > design principal of what "abstract class or method" means. > > FPC should raise an error. I don't care what Delphi does - it's wrong. I agree, it's awkward to just le

Re: [fpc-pascal] abstract classes

2013-01-21 Thread Graeme Geldenhuys
On 01/21/13 22:28, Leonardo M. Ramé wrote: > > As far as I remember Delphi has the same behavior. As I said in the other thread - it is a bug! Completely defeats the design principal of what "abstract class or method" means. FPC should raise an error. I don't care what Delphi does - it's wrong.

Re: [fpc-pascal] abstract classes

2013-01-21 Thread Leonardo M . Ramé
> > From: Howard Page-Clark >To: FPC users list >Sent: Sunday, January 20, 2013 8:37 PM >Subject: [fpc-pascal] abstract classes > >FPC allows the Delphi-compatible "class abstract" syntax, but does not seem to >prevent instantiation of such a class. >The followi

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Wimpie Nortje
Thanks, I'll have a look at it. On 2013/01/21 04:07 PM, Honza wrote: > 2013/1/20 Paul Ishenin : >> 20.01.13, 23:21, Wimpie Nortje пишет: >>> Hi list >>> >>> I want to test membership of a unicode char in a set / array of unicode >>> chars. Something like >>> >>> var ucCh: unicodechar; >>> >>> if u

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Honza
2013/1/20 Paul Ishenin : > 20.01.13, 23:21, Wimpie Nortje пишет: >> >> Hi list >> >> I want to test membership of a unicode char in a set / array of unicode >> chars. Something like >> >> var ucCh: unicodechar; >> >> if ucCh in [ UnicodeChar('0')..UnicodeChar('9')] then >> dosomething; >> >> I

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Wimpie Nortje
Thanks, I had already written a CharInSet(UnicodeChar; UnicodeString) function, but I hoped there were a language construct equivalent to the ansi char method. On 21 January 2013 10:32, Marco van de Voort wrote: > In our previous episode, Paul Ishenin said: > > > > > > I am using fpc 2.6.0 and

Re: [fpc-pascal] Testing set membership for unicode chars

2013-01-21 Thread Marco van de Voort
In our previous episode, Paul Ishenin said: > > > > I am using fpc 2.6.0 and the '..' operator converts the data to a pascal > > set, which is limited to 1 byte data. > > > > Is there another way? > Delphi has CharInSet() function for this: > http://docs.embarcadero.com/products/rad_studio/delphiA