Re: [fpc-pascal]RE: SQLite Header File

2004-03-11 Thread kractor
Taj Morton wrote: It is better to include unit initc though, then including {$linklib c} Thanks! Got it working! Find a patch below the example in /usr/src/fpc-1.0.10/packages/base/sqlite/test.pas --- test.pas2004-03-03 15:41:32.0 -0800 +++ test-new.pas2004-03-03 15:42:32.000

Re: [fpc-pascal]Bug or not Bug

2004-03-11 Thread Thomas Schatzl
Hello, > > I'm having trouble using Round: > > - [ BOF: test.pas ] - > > Program Test ; > > Uses > > Math, SysUtils ; > > > > Var > > i : Byte ; > > Begin > > For i := 0 to 31 do > > WriteLn(Format('%d %.8x',[i,Round(Ldexp(1,i))])) ; > > End. > > - [ EOF: test.pas ] - >

Re: [fpc-pascal]Bug or not Bug

2004-03-11 Thread Peter Vreman
> Round returns a longint. The range of a longint is -2^31 .. (2^31-1). > The result you had (2^31) doesn't fit in a longint, so this is not a fpc > bug. > > As I don't have Delphi, I don't know why Delphi doesn't give an error. It > could > be that the Delphi's return value is int64 or cardinal. O

Re: [fpc-pascal]Bug or not Bug

2004-03-11 Thread Vincent Snijders
On Thu, 11 Mar 2004 12:32:24 +0200 "Andrew J.Swan \[home\]" <[EMAIL PROTECTED]> wrote: > * Hi Fpc-list, > > I'm having trouble using Round: > - [ BOF: test.pas ] - > Program Test ; > Uses > Math, SysUtils ; > > Var > i : Byte ; > Begin > For i := 0 to 31 do > WriteLn(Format('%

Re: [fpc-pascal]emacs & freepascal

2004-03-11 Thread Jacobo García López de Araújo
Thanks for the information, that worked perfectly. Jacobo García Lopez de Araujo El mié, 10-03-2004 a las 23:25, Michalis Kamburelis escribió: > Jacobo García López de Araújo wrote: > > Hi, it's my first post to the list so i want to salute everyone. > > > > And here is my question, i'm trying t