Re: [fpc-pascal] How can you convert an enum value to string?

2014-12-12 Thread silvioprog
Oops, sorry, tag on nabble platform cutted my code. :S On Fri, Dec 12, 2014 at 11:46 PM, silvioprog wrote: > > But if you want speed in your conversion, GetEnumName is more fast than > WriteStr. :3 uses typinfo; type tenum = (e1, e2, e3); procedure TForm1.Button1Click(Sender: TObject); c

Re: [fpc-pascal] How can you convert an enum value to string?

2014-12-12 Thread silvioprog
But if you want speed in your conversion, GetEnumName is more fast than WriteStr. :3 Result: 00:00:04:336 - 00:00:01:407 -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/How-can-you-convert-an-enum-value-to-string-tp2821227p5720613.html Sent from the Free Pa

Re: [fpc-pascal] Generic: record type restriction

2014-12-12 Thread Sven Barth
Am 12.12.2014 18:44 schrieb "silvioprog" : > > Hello, > > I need to restrict a generic type to accept specialization only of enum types. In Delphi, I can do that using "T: record", but, when I try to use it in FPC (even using mode delphi), I got: > > project1.lpr(16,42) Error: Record type expected

Re: [fpc-pascal] Brook Framework and Template Engines

2014-12-12 Thread Flávio Etrusco
On Fri, Dec 12, 2014 at 10:14 AM, silvioprog wrote: > On Fri, Nov 14, 2014 at 11:18 AM, Fabrício Srdic > wrote: >> >> Hello, >> >> What's the current status of the Brook Server Pages project? >> >> What's the recommended template engine to use with Brook Framework? >> >> Best regards > > Hello, >

Re: [fpc-pascal] Brook Framework and Template Engines

2014-12-12 Thread silvioprog
On Fri, Nov 14, 2014 at 11:18 AM, Fabrício Srdic wrote: > Hello, > > What's the current status of the Brook Server Pages project? > > What's the recommended template engine to use with Brook Framework? > > Best regards > Hello, Just waiting someone to fix this leak problem: https://github.com/r