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

2012-03-04 Thread Ludo Brands
> 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 > c

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