Re: [fpc-pascal] AnsiDequotedStr not return empty for ""

2008-03-02 Thread Daniël Mantione
Op Sun, 2 Mar 2008, schreef Micha Nelissen: Peter Vreman wrote: That also in Delphi, but it is for me wrong. In fact that make my program working wrong when send UserName="Admin" and Password="", it check password as '""' not empty. The behaviour is compatible with Delphi and will not be ch

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 := 5

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 woul

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. Daniël___

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 the

Re: [fpc-pascal] Skybuck's ODE approved by sourceforge :)

2008-02-12 Thread Daniël Mantione
Op Tue, 12 Feb 2008, schreef Skybuck Flying: Hello, My project called: Skybuck's ODE is getting off the ground :) The project's website, source code, collobaration support is located at: https://sourceforge.net/projects/skybuckode/ For now one type of job is available: Syntax highlighting

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 unit

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] 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 sa

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

2008-02-05 Thread Daniël Mantione
Op Tue, 5 Feb 2008, schreef Tiziano De Togni: Michael Van Canneyt ha scritto: On Tue, 5 Feb 2008, Tiziano De Togni wrote: From the Delphi (7) help and in the borland newgroups I read that the old TP style object type is considered to disappear, and actually only kept for code compatibili

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; Tes

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

2008-01-18 Thread Daniël Mantione
Op Fri, 18 Jan 2008, schreef Vinzent Hoefler: On Friday 18 January 2008 16:04, Michael Van Canneyt wrote: 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 t

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

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: 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 cannot declare a variable with the same name as a unit you use, because a unit is also an identifier.

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 conce

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 r

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 com

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 expr

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 V

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 impress

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". :) http://

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;

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 update

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 s

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

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 ca

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: > > > > > http://svn.freepascal.org/svn/

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 u

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

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?msgi

Re: [fpc-pascal] Speed

2007-10-31 Thread Daniël Mantione
Op Wed, 31 Oct 2007, schreef Jilani Khaldi: > > > I hear the Intel C compilers and Fortran compilers and Ada compilers > > > are better > > > optimized for certain things since FPC/delphi are generally desinged > > > for GUI > > > programming. ;-) > > > > C/Fortran yes, Ada no; there exists no

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

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

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 >

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 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 d

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

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: ye

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 e

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/di

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

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 w

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 http://lists.freepascal.org/mailman/li

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 genera

Re: [fpc-pascal] MPICH2 on FPC

2007-10-22 Thread Daniël Mantione
Op Mon, 22 Oct 2007, schreef Lourival Mendes: > Hy everybody, > > I would like to use the MPICH2 on Lazarus or FPC, and as far as I see > on the net there is the H2Pas tool on Lazarus that does a binding from > the headers file of the MPICH2 to PAS file, but I still have some > troubles on usin

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

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

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] 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 an

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

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 class

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 ope

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 > > b

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___ fp

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.

Re: [fpc-pascal] Freepascal 2.2.0 released

2007-09-11 Thread Daniël Mantione
Op Tue, 11 Sep 2007, schreef Marc Santhoff: > Am Montag, den 10.09.2007, 12:56 +0200 schrieb Joost van der Sluis: > > Since this page isn't already up: > > > http://wiki.freepascal.org/User_Changes_2.2.0 > > Can someone please give a short explanation of this item?: > > > * pointer[low..h

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.

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 d

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

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 > > >

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 co

Re: [fpc-pascal] fpc and boehm

2007-08-26 Thread Daniël Mantione
Op Sun, 26 Aug 2007, schreef blackdog: > > Hi Daniël > > Thanks for the quick reply. I don't necessarily want fpc to interact > with boehm directly by redirecting the memory manager calls, however now > that you've mentioned it could be a solution, my question is should > an fpc .so be a direc

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 c

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

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

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 mergin

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 08:08, Florian Klaempfl wrote: > > Vinzent Hoefler schrieb: > > > On Tuesday 14 August 2007 06:14, Daniël Mantione wrote: > > >> Lastly, pre and post conditions are just another runtime che

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

2007-08-13 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 t

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

2007-08-13 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

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] 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-tie

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 wou

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 Win

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 ne

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: > /usr/local/lib/fpc/2.3.1/units/i386-win32/rtl > install: ../../rtl/units/i386-win32/rtlconsts.ppu: No such file or directory > make: *** [fpc_install] Error 71 Most of the win32 rtl is built by a build unit called buildrtl.pp in the directory rtl/

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 cross-co

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 sti

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 f

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

Re: [fpc-pascal] How to deal with printer in FPC win32?

2007-07-07 Thread Daniël Mantione
Op Sat, 7 Jul 2007, schreef Irawan Tanudirdjo: > Dear all, > > Anyone has a link/tutorial/anything that can helps > explain how to deal with dot matrix printer using FPC > in Windows box? > > I've been trying searching in the net, usually the > printer programming stuff consist of using canvas

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 (w

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

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 i

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 - fpc-pascal@lists.freepasc

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] 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 Europe

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 anyo

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 vari

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 complicate

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

2007-06-13 Thread Daniël Mantione
Op Wed, 13 Jun 2007, schreef Felipe Monteiro de Carvalho: > On 6/13/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > > Then you have to use the utf8string type. If it doesn't work good > > enough, we've to fix it. > > changing on my program from strint to utf8string didn't make any > differenc

Re: [fpc-pascal] put data to stdout (fpc vs. gcc)

2007-06-13 Thread Daniël Mantione
Op Wed, 13 Jun 2007, schreef Catalin Zamfir Alexandru: > Guess because you're using inc(count) which may tell the compiler to use a > specific procedure, specific procedure that may have its own hidden > variables. > > Use count := count + 1; and see what happens. This way you're not using th

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 > > > converte

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 termina

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 messag

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 (.) directories as they are > considered hidden under Linux. > Yet FindFirst / FindNext doesn't have the faHidden fl

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 a

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. Daniël___

Re: [fpc-pascal] PASCAL programming for Novice

2007-06-09 Thread Daniël Mantione
Op Sat, 9 Jun 2007, schreef Aruna Goke: > I am completely new to programming and I have been watching this list over > some few months. > > I would be glad, if i can get a link to where I can get a book to download in > order to learn pascal. Here is an on-line tutorial: http://www.taoyue.com

  1   2   3   >