Re: [fpc-pascal] Empty record inside another record ?

2008-03-01 Thread Daniël Mantione
Op Fri, 29 Feb 2008, schreef Skybuck Flying: There is another major drawback to your supposedly better method: Object inheritance forces all fields to be accessable from the root: SomeRoot.SomeField := ...; While nesting has nice grouping: SomeRoot.SomeHeader.SomeOtherHeader.SomeField :=

Re: [fpc-pascal] arm-linux, no bus error on misaligned data access

2008-02-26 Thread Daniël Mantione
Op Tue, 26 Feb 2008, schreef Bernd Mueller: Hello, my ARM-Linux board seems to be resistant against bus errors/misaligned data access or the compiler does some magic to prevent these ;-) Yes, the kernel fixes the unaligned access. It would help me, to debug a program, when my board would

Re: [fpc-pascal] Empty record inside another record ?

2008-02-24 Thread Daniël Mantione
Op Sun, 24 Feb 2008, schreef Skybuck Flying: Finally there is another question remaining: Are objects always packed ? No, to get packed objects you have to declare them packed. A record and object with the same field list have the same binary layout.

Re: [fpc-pascal] Empty record inside another record ?

2008-02-16 Thread Daniël Mantione
Op Fri, 15 Feb 2008, schreef Skybuck Flying: To me it seems like some kind of trick, to extend a record at runtime. The empty record field, functions as a sort of offset/label/pointer if you will to the new fields that will will be extended to the record by simply allocating more memory

Re: [fpc-pascal] Interfacing with the free pascal compiler ?

2008-02-11 Thread Daniël Mantione
Op Mon, 11 Feb 2008, schreef Skybuck Flying: Hello, Is there a special way to interface with the free pascal compiler, for example via a DLL/API ? Just use the compiler unit in your project. I want to develop the IDE in Delphi 2007. Is it still possible to interface via the compiler

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Daniël Mantione
Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method1; Method2; end; PMyObj = ^TMyObj; Yes, objects (by specification) are defined to have the

Re: [fpc-pascal] Turbo Pascal and Object Pascal ways of OOP

2008-02-05 Thread Daniël Mantione
Op Tue, 5 Feb 2008, schreef Marc Weustink: Daniël Mantione wrote: Op Tue, 5 Feb 2008, schreef Luiz Americo Pereira Camara: can i safely use the below object instead of the record and pass directly to the c function? TMyObj = object x: Integer; y: Integer; Method1; Method2; end; PMyObj

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Daniël Mantione
Op Fri, 18 Jan 2008, schreef Bee: Well, the statements so far went like this sub.sub.unit stuff is just .NET crap, we won't implement any of those. ;) I don't like that kind of attitude either. .Net is not crap as a whole, it does have some good features and ability. If some of them are

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Daniël Mantione
Op Fri, 18 Jan 2008, schreef Bee: I don't use .Net, but supporting Delphi dot namespace doesn't need to stop providing other functionality. Ideally, we should able to provide them both, the Delphi way and the FPC way. Both are the most used pascal compiler nowadays. ;) As far as I am

Re: RES: [fpc-pascal] dot within unit file name

2008-01-18 Thread Daniël Mantione
Op Fri, 18 Jan 2008, schreef Michael Van Canneyt: On Fri, 18 Jan 2008, Daniël Mantione wrote: Op Fri, 18 Jan 2008, schreef Michael Van Canneyt: To the user, it may appear as a bunch of dots. To the compiler, it doesn't know how to map the a.b.c.d: Well, with normal Pascal rules, you

Re: RES: [fpc-pascal] dot within unit file name

2008-01-18 Thread Daniël Mantione
Op Fri, 18 Jan 2008, schreef Vinzent Höfler: Maybe my view is skewed too much by the use of Ada where even a function declares a record identifier. In Ada it is even possible to do: --- procedure Test is X : Integer; procedure B is X : Integer; begin X := 1;

Re: [fpc-pascal] libc unit and FreeBSD

2008-01-13 Thread Daniël Mantione
Op Mon, 14 Jan 2008, schreef Graeme Geldenhuys: Hi, As far as I understand the 'libc' unit is a compatibility unit from the Kylix days and is only meant for linux/x86, so isn't portable. I'm trying to get fpGUI working under FreeBSD but hit a snag in my File Grid component. The File Grid

Re: [fpc-pascal] Feature Request: Evalution Box instead of Calculator

2008-01-12 Thread Daniël Mantione
Op Sat, 12 Jan 2008, schreef Bill Yau: Although I would like to transfer my programming from TP to FPC, I found that I cannot test some source lines directly without writing a full program. I suggest to implement the evalutation box in TP7 to the IDE, enabling users to input a full

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Daniël Mantione
Op Wed, 2 Jan 2008, schreef Graeme Geldenhuys: On 02/01/2008, Johann Glaser [EMAIL PROTECTED] wrote: So it all is about the invisible Linux downloaders. I agree...plus the Linux downloads are split into lots of small packages, were the Windows download is one file. I have the impression

Re: [fpc-pascal] Maybe a new fpc book :)

2008-01-02 Thread Daniël Mantione
Op Wed, 2 Jan 2008, schreef Michael Van Canneyt: 2. What libraries do most people use for console (i.e., terminal or text-mode) apps? I dislike ncurses; is there a better way? You can use crt or the video unit provided by FPC. You have Free

Re: [fpc-pascal] String comparison

2007-12-21 Thread Daniël Mantione
Op Fri, 21 Dec 2007, schreef Damien Gerard: Just another question :) What is the most efficient way to check if a string is empty or not ? if s = '' then ... of this one if Length(s) 0 then ... Both generate the same code. Daniël___

Re: [fpc-pascal] copy(), length(), and setlength() is not mentioned in fpc docs?

2007-12-05 Thread Daniël Mantione
Op Wed, 5 Dec 2007, schreef Bee: Hi all, Is it just me or above methods are indeed not mentioned within fpc's doc 2.2.0? Any texts that are supposed to be a link to above methods is not formed as a link. Just to make sure, before I'll report this to mantis as a bug. :)

Re: [fpc-pascal] Array slices

2007-11-11 Thread Daniël Mantione
Op Sun, 11 Nov 2007, schreef Christos Chryssochoidis: Hello all, A while ago in one of the FPC lists I had read that FPC 2.2.0 supports array slices. So I made a program to test this feature: program Test_Slices; procedure Test(C : array of Integer); begin end; var A :

Re: [fpc-pascal] is it safe to use v.2.2.1 for production use?

2007-11-08 Thread Daniël Mantione
Op Thu, 8 Nov 2007, schreef Bee: Hi all, I know latest stable release of fpc is v.2.2.0. But the latest updates and bug fixes are done on v.2.2.1. I found some serious updates and bug fixes are already done on v.2.2.1. But, is it safe to use v.2.2.1 for production use? Or should I stick

Re: [fpc-pascal] is it safe to use v.2.2.1 for production use?

2007-11-08 Thread Daniël Mantione
Op Thu, 8 Nov 2007, schreef Bee: Generally 2.2.1 is reliable, but bugfixes can have unforseen effects. You will have to weigh the advantage of the bugfixes against unforseen effects by those fixes. We cannot make that choice for you. Understood. Say I'd like to apply some updates/fixes

Re: [fpc-pascal] FPC now 3rd in shootout

2007-11-06 Thread Daniël Mantione
Op Tue, 6 Nov 2007, schreef L: The funny thing I see is everyone recommending Pchars. Why not setlength/uniquestring? Still too slow? Memory management, especially when you get reallocations, is expensive. With case ansistrings can perform well. However, you do have to care, and Pchars can

Re: [fpc-pascal] FPC now 3rd in shootout

2007-11-06 Thread Daniël Mantione
Op Tue, 6 Nov 2007, schreef Florian Klaempfl: S. Fisher schrieb: --- Florian Klaempfl [EMAIL PROTECTED] wrote: Ok, now somebody has to fix the regexpr unit and accelerate it *g* The C program in the shootout uses pcre (Perl-compatible regular expressions). It would be very

Re: [fpc-pascal] FPC now 3rd in shootout

2007-11-05 Thread Daniël Mantione
Op Mon, 5 Nov 2007, schreef S. Fisher: --- Peter Vreman [EMAIL PROTECTED] wrote: around. I have update the program to use a pchar instead of an ansistring so it finishes within reasonable time. The updated source can be found in:

Re: [fpc-pascal] TAPI for Linux?

2007-11-02 Thread Daniël Mantione
Op Fri, 2 Nov 2007, schreef ik: On 11/2/07, Daniël Mantione [EMAIL PROTECTED] wrote: Op Fri, 2 Nov 2007, schreef Graeme Geldenhuys: Hi, Anybody know what is the equivalent for Microsoft TAPI but under the Linux platform? Our windows applications can use TAPI to dial phone

Re: [fpc-pascal] TAPI for Linux?

2007-11-02 Thread Daniël Mantione
Op Fri, 2 Nov 2007, schreef Graeme Geldenhuys: Hi, Anybody know what is the equivalent for Microsoft TAPI but under the Linux platform? Our windows applications can use TAPI to dial phone numbers stored in our applications Contacts screen. I'd like to implement something like that when

Re: [fpc-pascal] fast text processing

2007-10-31 Thread Daniël Mantione
Op Wed, 31 Oct 2007, schreef Vincent Snijders: Florian Klaempfl schreef: Vincent Snijders schrieb: Why not SetLength(s,i)? StrLen is _very_ expensive. I don't see a way how another #0 can be before. No more strlen: http://www.hu.freepascal.org/fpcircbot/cgipastebin?msgid=1432 One

Re: [fpc-pascal] Speed

2007-10-30 Thread Daniël Mantione
Op Tue, 30 Oct 2007, schreef L: I think first code is faster than second, because in first code SubCalculate function is in calling function body? Actually some times local scope functions are slower because the variables need to be carried around since you are doing somewhat of a

Re: [fpc-pascal] FPC and JAVA

2007-10-29 Thread Daniël Mantione
Op Mon, 29 Oct 2007, schreef Jonas Maebe: On 27 Oct 2007, at 17:22, Mattias Gaertner wrote: Also, all those icons in the menus look pretty weird (very few Mac apps have that, and none that I currently use does), Should they be hidden? In general, I would say: yes. Maybe it

Re: [fpc-pascal] Re: Why this evaluates on if wrong ?

2007-10-29 Thread Daniël Mantione
Op Mon, 29 Oct 2007, schreef L: It's just one more funny thing one must realize, when comparing real numbers with some exact real constants. After this, I will try to never compare doubles directly, but using tricks like above. Because, in this digital world 1 + 0.4 - 0.4 1. My

Re: [fpc-pascal] Re: Why this evaluates on if wrong ?

2007-10-29 Thread Daniël Mantione
Op Mon, 29 Oct 2007, schreef L: Your Casio doesn't do comparisons. Just round to 10 digits before you compare and it'll work just as fine as on your Casio. Daniël And some off topic trivia: My casio says 10 + 2 digits near the model number. Does this mean it displays 10

Re: [fpc-pascal] Re: Why this evaluates on if wrong ?

2007-10-29 Thread Daniël Mantione
Op Mon, 29 Oct 2007, schreef L: Same as ansistring.. it can be dangerous to hide all the intricate details of a pchar/bytearray, which is what ansistring does. But ansistrings are really useful for 'every day' use. Wrong. A string can be represented alphadequate, as it is called; an

RE: [fpc-pascal] Re: Why this evaluates on if wrong ?

2007-10-29 Thread Daniël Mantione
Op Mon, 29 Oct 2007, schreef Stephen Dickason: It's just one more funny thing one must realize, when comparing real numbers with some exact real constants. After this, I will try to never compare doubles directly, but using tricks like above. Because, in this digital world 1 + 0.4 -

Re: [fpc-pascal] Re: Why this evaluates on if wrong ?

2007-10-29 Thread Daniël Mantione
Op Mon, 29 Oct 2007, schreef L: Same as ansistring.. it can be dangerous to hide all the intricate details of a pchar/bytearray, which is what ansistring does. But ansistrings are really useful for 'every day' use. Wrong. A string can be represented alphadequate, as it is called;

Re: [fpc-pascal] Why this evaluates on if wrong ?

2007-10-28 Thread Daniël Mantione
Op Sun, 28 Oct 2007, schreef Milan Marusinec: Hello folks, This one looks pretty elementary, but to my big surprise it doesn't work as I would expect. I'd like to ask FreePascal compiler creators, how can I safely evaluate double variables in case like this. Sample program with

Re: [fpc-pascal] Why this evaluates on if wrong ?

2007-10-28 Thread Daniël Mantione
Op Sun, 28 Oct 2007, schreef Joao Morais: Daniël Mantione wrote: There is a similar issue here. The value 0.4 cannot be stored exactly in a computer, therefore it is rounded. This behaviour normal and while annoying, it is simply how things work in the digital world, you will have

Re: [fpc-pascal] Why this evaluates on if wrong ?

2007-10-28 Thread Daniël Mantione
Op Sun, 28 Oct 2007, schreef L: If you do on a hand calculator: 1/3 ... you will see: 0.333 If you multiply again with 3, you will see: 0.999 ... and not 1.000. On my electronic/digital calculator I see '1' It is a

Re: [fpc-pascal] Why this evaluates on if wrong ?

2007-10-28 Thread Daniël Mantione
Op Sun, 28 Oct 2007, schreef Adriaan van Os: Daniël Mantione wrote: N - Natural numbers Z - Integer numbers Q - Rational numbers R - Real numbers C - Complex numbers Subranges of N, Z and Q can be represented exactly in a computer. R and C can not, we use the floating

Re: [fpc-pascal] FPC and JAVA

2007-10-27 Thread Daniël Mantione
Op Sat, 27 Oct 2007, schreef Michael Van Canneyt: On Sat, 27 Oct 2007, Jonas Maebe wrote: While I do not dispute the validity of your comments, I'd like to point out that any cross-platform solution will suffer from this. Be it in Mono, Java or FPC. I'm sure the Eclipse or Mono generated

Re: [fpc-pascal] FPC and JAVA

2007-10-27 Thread Daniël Mantione
Op Sat, 27 Oct 2007, schreef Mattias Gaertner: Sounds great. Can we add this sentence to the main page? :) Certainly. AddBugReport(); Done. Daniël___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Calling a function by name (as string) read from a text file

2007-10-10 Thread Daniël Mantione
y Op Wed, 10 Oct 2007, schreef Jilani Khaldi: type Tsetupfunc_mapping=record name:string; func:setupfunc; end; const setupfunc_mapping:array[0..2] of Tsetupfunc_mapping=( (name:'setup_function_1';func:@setup_function_1), (name:'setup_function_2';func:@setup_function_2),

Re: [fpc-pascal] IDE fonts and codepage

2007-10-06 Thread Daniël Mantione
Op Sat, 6 Oct 2007, schreef Frank McCormick: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I followed the suggestion made sometime ago about loading cp850-8x16 font to get the line drawing characters when in the IDE on the console, but noticed then I don't have certain characters

Re: [fpc-pascal] IDE fonts and codepage

2007-10-06 Thread Daniël Mantione
Op Sat, 6 Oct 2007, schreef Frank McCormick: On Sat, 06 Oct 2007 17:41:42 +0200 (CEST) Daniël Mantione [EMAIL PROTECTED] wrote: I followed the suggestion made sometime ago about loading cp850-8x16 font to get the line drawing characters when in the IDE on the console

Re: [fpc-pascal] function alias

2007-10-06 Thread Daniël Mantione
Op Sat, 6 Oct 2007, schreef Mattias Gaertner: On Thu, 4 Oct 2007 20:17:36 +0200 (CEST) Daniël Mantione [EMAIL PROTECTED] wrote: Op Thu, 4 Oct 2007, schreef Mattias Gaertner: Yes, but I hoped to declare it in situ - without adding another type. ;) The reason is that I'm auto

Re: [fpc-pascal] function alias

2007-10-04 Thread Daniël Mantione
Op Thu, 4 Oct 2007, schreef Mattias Gaertner: Yes, but I hoped to declare it in situ - without adding another type. ;) The reason is that I'm auto translating some C headers that contains aliases for functions. procedure DoAliasSomething(...params...); cdecl; external 'useful'; ... is

Re: [fpc-pascal] Turbo Pascal Mode Bug?

2007-10-02 Thread Daniël Mantione
Op Tue, 2 Oct 2007, schreef Felipe Monteiro de Carvalho: As per the docs: http://www.freepascal.org/docs-html/prog/progsu82.html#x90-91.2.17 There is a GNU pascal mode. AFAIK Gnu Pascal follows ISO Pascal, so it would be possible to use Free Pascal with this mode, or GNU Pascal, to

Re: [fpc-pascal] Turbo Pascal Mode Bug?

2007-10-01 Thread Daniël Mantione
Op Mon, 1 Oct 2007, schreef Zaka E-Lab: My University have replaced ( other time ) freepascal.org, and we must use the archaic Turbo Pascal 6.0, cause they say that freepascal don't respect the ISO Pascal. Funny. Free Pascal does not respect ISO Pascal, because it respects Turbo Pascal. :)

Re: [fpc-pascal] Support Interfaces

2007-09-17 Thread Daniël Mantione
Op Mon, 17 Sep 2007, schreef Stephen Dickason: I'm new to the multi-OS programming environment and wondered if there was some documentation on the different interface mechanisms used in FPC? Please elaborate. Interface as in the language feature regarding interfaces between classes? Or

RE: [fpc-pascal] Support Interfaces

2007-09-17 Thread Daniël Mantione
Op Mon, 17 Sep 2007, schreef Stephen Dickason: I'm new to the multi-OS programming environment and wondered if there was some documentation on the different interface mechanisms used in FPC? Please elaborate. Interface as in the language feature regarding interfaces between classes? Or

Re: [fpc-pascal] Freepascal 2.2.0 released

2007-09-11 Thread Daniël Mantione
Op Tue, 11 Sep 2007, schreef Johann Glaser: Hi! procedure abc(const x:array of byte); begin end; var b:array[0..15] of byte; begin abc(b[0..9]); end; I see, pretty neat for handling array row-wise or the like, thanks. Is it also possible to run

Re: [fpc-pascal] FPC 2.2.0 for DOS

2007-09-11 Thread Daniël Mantione
Op Tue, 11 Sep 2007, schreef Andreas Berger: Can someone tell me what needs to be done to have FPC 2.2.0 for DOS? Well, this time it is in good state, for a change. A release needs to be build and tested to work and install correctly. Daniël___

Re: [fpc-pascal] FPC 2.2.0 for DOS

2007-09-11 Thread Daniël Mantione
Op Tue, 11 Sep 2007, schreef Andreas Berger: Daniël Mantione wrote: Can someone tell me what needs to be done to have FPC 2.2.0 for DOS? Well, this time it is in good state, for a change. A release needs to be build and tested to work and install correctly

Re: [fpc-pascal] simple sound implementation

2007-09-03 Thread Daniël Mantione
Op Sun, 2 Sep 2007, schreef Marc Santhoff: Am Sonntag, den 02.09.2007, 10:32 +0200 schrieb Daniël Mantione: You can set the bell frequency using write(#27'10;freq') and the duration using write(#27'10;duration'), where freq is in Hz and duration in milliseconds. Then ctrl+g to ring

Re: [fpc-pascal] simple sound implementation

2007-09-03 Thread Daniël Mantione
Op Sun, 2 Sep 2007, schreef Mark Wood: Naturally, this is not possible: The PC speaker is simply controlled by a timer, which creates a square wave (on/off). In ancient DOS times there was a trick by doing a frequency modulation, i.e. you turn the timer on and off quite fast. But on

Re: [fpc-pascal] simple sound implementation

2007-09-02 Thread Daniël Mantione
Op Sun, 2 Sep 2007, schreef Jonas Maebe: On 02 Sep 2007, at 07:58, Marc Santhoff wrote: FreeBSD has a simple speaker-device and is able to use it for simple freqency and duration sounds via ioctl as well as playing musical notes a simple acsii-notation. Maybe Linux, MacOS and others

Re: [fpc-pascal] ARM7TDMI

2007-08-28 Thread Daniël Mantione
Op Tue, 28 Aug 2007, schreef Marc Santhoff: Am Montag, den 27.08.2007, 14:14 +0200 schrieb Daniël Mantione: Op Mon, 27 Aug 2007, schreef Rainer Stratmann: Is it possible to write ARM Programs for these single microcontroller chips without a RTL and without specifying

Re: [fpc-pascal] ARM7TDMI

2007-08-27 Thread Daniël Mantione
Op Mon, 27 Aug 2007, schreef Rainer Stratmann: Is it possible to write ARM Programs for these single microcontroller chips without a RTL and without specifying a target operating system? Or write pure Assembler Programs? And then to download it into these single chip controller? The

Re: [fpc-pascal] fpc and boehm

2007-08-26 Thread Daniël Mantione
Op Sun, 26 Aug 2007, schreef blackdog: Hi List This is my first post to the list and I'm new to fpc too. I'm interested in using fpc to create .so/.dll for the Neko virtual machine (http://www.nekovm.org), instead of using C for the same task. So that means translating header files.

Re: [fpc-pascal] Win64 Cross Compiling

2007-08-26 Thread Daniël Mantione
Op Sun, 26 Aug 2007, schreef Robert Wolfe: Hi all! I would like to add Win64 cross compiling capabilities to the FP.EXE editor. I was wondering if anyone has done this already and if so, how? That is not possible as there can be only only code generator inside the IDE. The IDE can be

Re: [fpc-pascal] Competitive advantage in showing proof of correctness

2007-08-14 Thread Daniël Mantione
Op Mon, 13 Aug 2007, schreef JK Smith at Grid-Sky: As I mentioned before, assuming some degree of liability for your work is on the horizon. From http://www.lightbluetouchpaper.org/2007/08/10/house-of-lords-inquiry-personal-internet-security/ Quote: The third area, and this is where

Re: [fpc-pascal] Competitive advantage in showing proof of correctness

2007-08-14 Thread Daniël Mantione
Op Tue, 14 Aug 2007, schreef Vinzent Hoefler: On Tuesday 14 August 2007 06:14, Daniël Mantione wrote: Lastly, pre and post conditions are just another runtime check. No. If you can prove that the conditions always hold, you don't even need to compile to the program to prove its

Re: [fpc-pascal] Competitive advantage in showing proof of correctness

2007-08-14 Thread Daniël Mantione
Op Tue, 14 Aug 2007, schreef James Smith: Before completely dismissing this issue, I hope you guys will consider merging Tom's qualified work into the trunk at some point. Of course it will be considered. I don't think we are there yet though. First, Tom needs to say he is ready for merging

Re: [fpc-pascal] Competitive advantage in showing proof of correctness

2007-08-14 Thread Daniël Mantione
Op Tue, 14 Aug 2007, schreef mm: James Smith a écrit : Well, I know programmers who turn off range checking and let exceptions fall through empty exception blocks. They don't work with me on projects. Though it is sometimes the best way of doing. It is sometimes better to check ranges

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-13 Thread Daniël Mantione
Op Mon, 13 Aug 2007, schreef Michael Van Canneyt: Obviously their clients have more sense than this company does... Mod up +1 Insightfull... Yes, this is the whole point, end users like Pascal applications more than Java applications. (Because their are faster, use les smemory, install

Re: [fpc-pascal] Need three things

2007-08-12 Thread Daniël Mantione
Op Sun, 12 Aug 2007, schreef ik: Ok, one more: 4) I miss array slice syntax (str:= s[2..7];) from the Stony Brook M2 days. So much more concise than Copy().; Let me please quote Marco and say this is a synthetic sugar, or at least sort of.. it's not like there is no way (without

Re: [fpc-pascal] OT: Rename for Pascal

2007-08-12 Thread Daniël Mantione
Op Sun, 12 Aug 2007, schreef Leonardo M. Ramé: Before assuming FPC isn't atracting users, why don't we start tracking new users and compare it's evolution month by month, year by year. With the help of this method, we can figure out some ways to market FreePascal and Lazarus. We can

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-17 Thread Daniël Mantione
Op Tue, 17 Jul 2007, schreef Adriaan van Os: lazarus.pp(118,1) Error: resource compiler not found, switching to external mode Can you try -vt to see if and in what directories the compiler tries to search windres? It could very well be that the compiler searches for windres.exe, this

Re: [fpc-pascal] msedb and fcl-db benchmarks

2007-07-17 Thread Daniël Mantione
Op Tue, 17 Jul 2007, schreef Coco Pascal: Joost van der Sluis wrote: Discussion: What tests could I do more? Is there something I overlooked? To me it seems that benchmark tests on 10 records are missing relevance more and more. I'm interested in responsiveness in n-tier

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Daniël Mantione
Op Mon, 16 Jul 2007, schreef Adriaan van Os: Has anyone tried to build a Free Pascal Windows crosscompiler on an Intel Mac ? Is this supported ? Yes, you don't need a cross-compiler to cross-compile to different operating systems. With FPC 2.1.4+ you don't need binutils either to

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Daniël Mantione
Op Mon, 16 Jul 2007, schreef Adriaan van Os: and hello.exe actually runs at the other side of the fence. Note that you can install Wine (I'm not sure though how the Darwin port hasprogressed) to do testing. With Wine you can do the full development without a Windows computer and you only

Re: [fpc-pascal] Building a i686-pc-mingw32 crosscompiler from i686-darwin

2007-07-16 Thread Daniël Mantione
Op Mon, 16 Jul 2007, schreef Vincent Snijders: Daniël Mantione schreef: Op Mon, 16 Jul 2007, schreef Adriaan van Os: and hello.exe actually runs at the other side of the fence. Note that you can install Wine (I'm not sure though how the Darwin port hasprogressed) to do

Re: [fpc-pascal] IDE blows up itself

2007-07-13 Thread Daniël Mantione
Op Fri, 13 Jul 2007, schreef Tiziano_mk: Arjan van Dijk wrote: Hi! I had problems debugging my program under the last official IDE/Freepascal for Windows, so I just installed the release candidate that is bound to become official in 2 months. My problem still stands: during

Re: [fpc-pascal] Profane question: can I use the IDE for another compiler/debugger?

2007-07-12 Thread Daniël Mantione
Op Thu, 12 Jul 2007, schreef Arjan van Dijk: Question: Can someone from the development team tell me if the Freepascal IDE can be told to call a FORTRAN compiler instead of Freepascal, and use gdb instead of the Freepascal debugger? Just like the Freepascal website can be switched from

Re: [fpc-pascal] splitting string into array

2007-07-10 Thread Daniël Mantione
Op Tue, 10 Jul 2007, schreef Marc Santhoff: Hi, is there any function in the libraries of fpc for splitting a string into an array naming the separator? In awk for eample if you do this: split(ab-cd-ef, x, -) print x[2] it would split up the first string using - as

RE: [fpc-pascal] In EABI ARM rootdisk dynamic linker is not named ld-linux.so.2

2007-07-06 Thread Daniël Mantione
Op Fri, 6 Jul 2007, schreef josepascual: Hi developer of freepascal (for arm) et all I have tried a freepascal program for arm EABI. I have created a ppcrossarm with SOFTFLOAT with binutils for EABI. Freepascal program compiled okey but When I run it in ARM board (with

Re: [fpc-pascal] In EABI ARM rootdisk dynamic linker is not named ld-linux.so.2

2007-07-04 Thread Daniël Mantione
Op Wed, 4 Jul 2007, schreef josepascual: Hi developer of freepascal (for arm) et all I have tried a freepascal program for arm EABI. I have created a ppcrossarm with SOFTFLOAT with binutils for EABI. Freepascal program compiled okey but When I run it in ARM board (with rootdisk EABI) I

Re: [fpc-pascal] PowerPC crosscompiler on i386 Mac OS X looks for, wrong assembler and linker

2007-07-03 Thread Daniël Mantione
Op Tue, 3 Jul 2007, schreef Adriaan van Os: I am not at all saying that FPC should follow GNU conventions, no, but at least the rules are clear there. You configure for target, host and build and then the Makefile takes cares of the rest. If a configuration is not supported or if there is a

Re: [fpc-pascal] GTK2 Lazarus Project, but I want QT.

2007-06-21 Thread Daniël Mantione
Op Thu, 21 Jun 2007, schreef Catalin Zamfir Alexandru: I may have the easiest job of them all. I'm updating my Gentoo QT to 4.3 which compiles the source, installs it and makes all necesary adjustments. Still compiling. 4 hours have passed and Qt is still compiling. QT

Re: [fpc-pascal] Interesting namespace question

2007-06-21 Thread Daniël Mantione
Op Thu, 21 Jun 2007, schreef [EMAIL PROTECTED]: I think it will call itself, until it runs out of stack space (error 202). No, it won't, test here refers to the function result variable. Daniël___ fpc-pascal maillist -

Re: [fpc-pascal] Metaware

2007-06-18 Thread Daniël Mantione
Op Mon, 18 Jun 2007, schreef Tom Walsh: Heh, if you are reading this then you may know what Metaware is? I've a large(!) body of code written over the years under the Metaware Professional Pascal compiler. This code is to be translated to run on the fpc compiler. I wonder if anyone out

Re: [fpc-pascal] a book about freepascal [off-topic]

2007-06-18 Thread Daniël Mantione
Op Wed, 13 Jun 2007, schreef Felipe Monteiro de Carvalho: I took a quick look at the website and they do ship world wide. The only challenge would be understanding the portuguese on their website. There doesn't seam to be an english version of the site. I placed an order at their European

Re: [fpc-pascal] Re: fpc-pascal DLLs

2007-06-16 Thread Daniël Mantione
Op Sat, 16 Jun 2007, schreef Dr: Please tell me whether FPC Pascal makes DOS ( DPMI ) protected mode DLL and EXE files, that is, a DLL ( called by a DPMI EXE ) that runs on DOS, even if there is NO Windows at all on my machine DLLs no, EXEs yes. You can load dxe files (the go32 variant

Re: [fpc-pascal] Funny things about utf-8 strings on mac

2007-06-13 Thread Daniël Mantione
Op Wed, 13 Jun 2007, schreef Jonas Maebe: On 13 jun 2007, at 07:32, Daniël Mantione wrote: Op Wed, 13 Jun 2007, schreef Felipe Monteiro de Carvalho: How would I then be sure that my string is never converted (or always converted from utf-8 to utf-8 if prefered), but just passed

Re: [fpc-pascal] Funny things about utf-8 strings on mac

2007-06-13 Thread Daniël Mantione
Op Wed, 13 Jun 2007, schreef Florian Klaempfl: Jonas Maebe schrieb: On 13 jun 2007, at 14:21, Florian Klaempfl wrote: If MacOSX uses always utf-8 for 8 bit strings, you can hardcode it of course in cwstrings and don't use iconv. Well, it's a bit more complicated than that, see

Re: [fpc-pascal] FindFirst / FindNext with faHidden under Linux

2007-06-12 Thread Daniël Mantione
Op Tue, 12 Jun 2007, schreef Graeme Geldenhuys: Hi, I'm doing a FindFirst / FindNext and fitering out all faHidden and faDirectory results. I don't want to show and dot (.name) directories as they are considered hidden under Linux. Yet FindFirst / FindNext doesn't have the faHidden flag

Re: [fpc-pascal] Search order for libraries, how to influence; using GMP

2007-06-12 Thread Daniël Mantione
Op Tue, 12 Jun 2007, schreef Michael Van Canneyt: Where do the first three come from? Can those be (re)moved? The compiler adds them by default, see systems/t_linux.pas. You can't remove them except by editing link.res (or changing the compiler). ... and there is no need. The message

Re: [fpc-pascal] Funny things about utf-8 strings on mac

2007-06-12 Thread Daniël Mantione
Op Wed, 13 Jun 2007, schreef Felipe Monteiro de Carvalho: How would I then be sure that my string is never converted (or always converted from utf-8 to utf-8 if prefered), but just passed like I wrote it to the library that I am using? Add the cwstring unit, and run it in an utf-8 terminal.

Re: [fpc-pascal] installing latest stable

2007-06-10 Thread Daniël Mantione
Op Sun, 10 Jun 2007, schreef pineal: On Sunday 10 June 2007 10:15, Michael Van Canneyt wrote: I have spent the whole afternoon trying to install fpc. :( First I downloaded the .rpm files. The compiler and docs install fine but the source doesn't install anything and there is no

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Daniël Mantione
Op Sat, 9 Jun 2007, schreef Francisco Reyes: FreePascal doesn't look in the current directory by default? I had to use uses HelloWorld in 'HelloWorld.p'; ___ It doesn't look for .p by default. Rename to .pas or .pp.

[fpc-pascal] Rebuilt 2.1.4 for i386-linux on ftp

2007-06-08 Thread Daniël Mantione
Hello, We have corrected an error in the package building of 2.1.4 for i386-linux. This fixes two errors: * The files in the tar archive had the wrong user/group * The IDE was built with in incorrect helper library, causing crashes. The rebuilt version is refered to on the ftp and websites as

Re: [fpc-pascal] installing latest stable

2007-06-08 Thread Daniël Mantione
Op Fri, 8 Jun 2007, schreef pineal: I have downloaded a tar archive, fpc-2.1.4.i386-linux.tar there are no install instructions that I can find. Can anyone give me some guidance or perhaps a link. Please a look at the earlier e-mail today about the rebuild of this release. The

Re: [fpc-pascal] Using AnsiString/WideString with C Library

2007-06-04 Thread Daniël Mantione
Op Mon, 4 Jun 2007, schreef [EMAIL PROTECTED]: I've read the documentation and I find that I can use WIDESTRING in a similar way, but I'm not sure which character codification WIDESTRING uses. The C library uses 'standard C strings' (that is 'char *string;') an there's a function to define

Re: [fpc-pascal] FPC only 32 bits?

2007-06-04 Thread Daniël Mantione
Op Mon, 4 Jun 2007, schreef Francisco Reyes: The source? Exactly. Daniël___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] using float emulation

2007-06-01 Thread Daniël Mantione
Op Fri, 1 Jun 2007, schreef Marc Santhoff: Hi, I'm trying to force fpc to use emulation code for floating poing calculations on i386 hardware. $ fpc -al -st -Op1 -CfSOFT floattest.pp Viewn from the assembler source the file is identical to one compiled without target options and the

Re: [fpc-pascal] Server software in pascal?

2007-05-25 Thread Daniël Mantione
Op Fri, 25 May 2007, schreef Francisco Reyes: I have not used Pascal in a while, but I am exploring whether to use pascal for a tcp server software. In particular it would be a policy server for postfix mail transfer agent. Any comments/suggestions/pointers for the following will be

Re: [fpc-pascal] Server software in pascal?

2007-05-25 Thread Daniël Mantione
Op Fri, 25 May 2007, schreef Francisco Reyes: Daniël Mantione writes: Check the sockets unit documentation. You'll be up and running in no time. There are also good OOP frameworks like Synapse, LNET and Indy, which provide complete implementations of common network protocols. Do you

Re: [fpc-pascal] Dynamic array as return type of functions

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Michalis Kamburelis: Christos Chryssochoidis wrote: Hi, I tried to write some function that returned a dynamic array, and realized that this isn't allowed. Why? After all one can specify an array of variable length as type for variables... Furthermore -

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Bisma Jayadi:

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Bisma Jayadi: No C programs have been submitted recently. It is probably the new broken scoring system. Is Shootout using new scoring system? How did you know that? See the long thread on the forum. It penalizes Pascal because we have a bad score for

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Jonas Maebe: On 23 mei 2007, at 10:39, Bisma Jayadi wrote: Of course it's very relevant since they are all using same algorithms No, because there are lot of ways to implement a single algorithm. Do you use ansistrings, shortstrings, arrays of char, or

Re: [fpc-pascal] gcc beats fpc again

2007-05-23 Thread Daniël Mantione
Op Wed, 23 May 2007, schreef Christian Ulrich: Very few OOP is used in the Pascal implementations, so Pascal and C are on equal grounds here. musnt the memory manager included if only few oo stuff is included ? ? The heap manager is always in the exe; it cannot be smarlinked away.

  1   2   >