Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-03-03 Thread Andrew Haines
On 02/23/12 16:23, Mattias Gaertner wrote: > Now it stops earlier on my files: > > Exception at 00473837: ERangeError: > Range check error. > Backtrace does not help much: > > #0 0x004120d0 in fpc_raiseexception () > #1 0x0045fc38 in > SYSUTILS_$$_RUNERRORTOEXCEPT$LONG

[fpc-pascal] [ot] Some(paid) work to do in FreePascal

2012-03-03 Thread John Sewell
Hi, (Sorry if it's the wrong place to post that, please point my to any list best suited for that) I would like the following tool, coded in FPC for Linux 64, in command line. The usage is a proxy log scanner to automatically block "bad websites" from our proxy. I know there is ton os list, tools,

Re: RE : RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marco van de Voort
In our previous episode, Ludo Brands said: > When you are thinking of using JSON you can use AnsiString as the internal > format eventually adding a datatype tag to avoid conversion data loss as > much as possible. ansistring is a decimal type. This incurs a binary to decimal conversion per se (wh

Re: RE : RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
On Sat, Mar 3, 2012 at 1:20 PM, Ludo Brands wrote: >> > Or define an internal storage format and convert the >> different types >> > to that format. That is also what variants are doing. The >> difference >> > is that variants have pre-defined assignment routines and >> conversions >> > between th

RE : RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Ludo Brands
> > Or define an internal storage format and convert the > different types > > to that format. That is also what variants are doing. The > difference > > is that variants have pre-defined assignment routines and > conversions > > between the different variant types which don't always fit what

Re: RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
On Sat, Mar 3, 2012 at 12:57 PM, silvioprog wrote: > 2012/3/3 Luiz Americo Pereira Camara : >> On 3/3/2012 10:08, Marcos Douglas wrote: >>> >>> Think in my class like a Business Object. >>> The struct is very similar with TParams it has many TParam. The data, >>> in a TParam, is save in a Variant

Re: RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread silvioprog
2012/3/3 Luiz Americo Pereira Camara : > On 3/3/2012 10:08, Marcos Douglas wrote: >> >> Think in my class like a Business Object. >> The struct is very similar with TParams it has many TParam. The data, >> in a TParam, is save in a Variant type. >> I need something like: >> u := TmyBO.Create;  // t

Re: RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Luiz Americo Pereira Camara
On 3/3/2012 10:08, Marcos Douglas wrote: Think in my class like a Business Object. The struct is very similar with TParams it has many TParam. The data, in a TParam, is save in a Variant type. I need something like: u := TmyBO.Create; // the name does matter u.Attr['name'].Value := 'Marcos'; //

Re: RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
On Sat, Mar 3, 2012 at 11:52 AM, Ludo Brands wrote: >> >> Think in my class like a Business Object. >> The struct is very similar with TParams it has many TParam. The data, >> in a TParam, is save in a Variant type. >> I need something like: >> u := TmyBO.Create;  // the name does matter >> u.Attr

RE : RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Ludo Brands
> > Think in my class like a Business Object. > The struct is very similar with TParams it has many TParam. The data, > in a TParam, is save in a Variant type. > I need something like: > u := TmyBO.Create; // the name does matter > u.Attr['name'].Value := 'Marcos'; // an instance is created and

Re: [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
On Sat, Mar 3, 2012 at 9:25 AM, Alberto Narduzzi wrote: >>> The reason for using a buffer in tdataset is that a record's data >>> normally >>> is located in one continuous buffer, from which a value is picked from >>> the >>> right spot (including strings) You can't have that with variants. >> >>

Re: RE : [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Marcos Douglas
On Sat, Mar 3, 2012 at 3:26 AM, Ludo Brands wrote: >> >> I need implements a similar structure but I need know if >> the use of >> >> Variant have very cost. >> > >> > >> > It has a cost. >> > >> > The reason for using a buffer in tdataset is that a record's data >> > normally is located in one co

Re: [fpc-pascal] Re: Variant vs Pointer

2012-03-03 Thread Alberto Narduzzi
The reason for using a buffer in tdataset is that a record's data normally is located in one continuous buffer, from which a value is picked from the right spot (including strings) You can't have that with variants. Hm... right. So, if I will have a class like a TParam, that have FValue: Variant

Re: [fpc-pascal] Re: OT: Amazing new development tools

2012-03-03 Thread Mark Morgan Lloyd
Martin wrote: On 29/02/2012 11:44, Mark Morgan Lloyd wrote: Martin wrote: Sure one *could* record *all* variables, and the callstack... But what if - you add a new variable, what to initialize it with? - remove the function that called the current code, or even delete the line where you just p