Re: [fpc-pascal] Problems with generics

2007-12-30 Thread bartek
On Sunday 30 December 2007 15:31:32 Micha Nelissen wrote: > bartek wrote: > > I am not quite sure whether my synatx is correct. IMHO explictly defining the > > type feels more pascalish. Having more time at hand i have written a much > > shorter example code which shows in what way such a type s

Re: [fpc-pascal] Problems with generics

2007-12-30 Thread Micha Nelissen
bartek wrote: > I am not quite sure whether my synatx is correct. IMHO explictly defining the > type feels more pascalish. Having more time at hand i have written a much > shorter example code which shows in what way such a type should be defined. I think that it is the same type in a different

Re: [fpc-pascal] Problems with generics

2007-12-30 Thread bartek
On Sunday 30 December 2007 07:32:22 Micha Nelissen wrote: > bartek wrote: > > function HashOf(const Key: ShortString): DWord; > > > > function BucketNodeOf(const Hash: DWord): TBucket.PNode; > > DataContainers.pp(104,66) Fatal: Syntax error, ";" expected but "." fou

Re: [fpc-pascal] Problems with generics

2007-12-29 Thread Micha Nelissen
bartek wrote: > function HashOf(const Key: ShortString): DWord; > > function BucketNodeOf(const Hash: DWord): TBucket.PNode; > DataContainers.pp(104,66) Fatal: Syntax error, ";" expected but "." found I'd say this is a bug, and your syntax is correct. Update the ex

[fpc-pascal] Problems with generics

2007-12-17 Thread bartek
Hi, I am toying around with generics and i got stuck when writing somewhat more advanced generic code. This code has already been once submitted by me as a bug(#0010247) report because fpc 2.2.0 crashes when trying to compile this. But this time I got futher with the latest svn(9488) compile. Th