Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Marco van de Voort
> Quoting Marco van de Voort <[EMAIL PROTECTED]>: > > > > > Afaik not, you have a pointer to an interface table, And even if you can get > > to the object vmt from there, you don't know anything about it. interface is > > all about information hiding. It might not even be a proper Pascal object.

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Nikolai Zhubr
Hi, Monday, 21 March, 2005, 8:58:07, ml at brainwashers dot org wrote: [...] > Fork? if there would be patches they would be insignificant, but since I'm > inside of tech preview for my project this would mean that fpc would go out of > race for this project before I would started patching > eith

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread ml
Quoting Marco van de Voort <[EMAIL PROTECTED]>: > > Afaik not, you have a pointer to an interface table, And even if you can get > to the object vmt from there, you don't know anything about it. interface is > all about information hiding. It might not even be a proper Pascal object. > > No, the

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Marco van de Voort
> Quoting Marco van de Voort <[EMAIL PROTECTED]>: > > > begin > > x:=getintfromsomewhere; > > writeln(x.someproperty); > > end; > > > > how do I know what code to generate for the property? > > > > > Shouldn't direct access to object and resolving object property be involved > here > w

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread ml
Quoting Marco van de Voort <[EMAIL PROTECTED]>: > > Seems a bit sad to me that, I didn't get answer to "what I really asked" > > but a lot of flaming posts about one btw. in my question, even subject > > says "Question about interfaces" and not "Question about operators". > > > > 1. Couldn't int

Re: [fpc-pascal] Absolute

2005-03-20 Thread Peter Vreman
> Hi > I have a problem with the following when I try to compile it > with the ppcrossarm compiler. This error dos not show when > I am doing a normal compile. > I have tried with version 1.9.4 and 1.9.9 > -- > Program bb; > > var > test:integer absolute 0030; > > Begin > End. > -

Re: [fpc-pascal] h2pas and #elif

2005-03-20 Thread Peter Vreman
> Hi, > > I tryed to convert a couple of .h files to > pascal units and run across the problem > that #elif aren't converted properly, > ie that they are left as > (*** was #elif ){$else defined(WIN32)} > and thus completely ignored. > > A quick look at the h2pas code revieled > that this case

Re: [fpc-pascal] function String Replication

2005-03-20 Thread Peter J. Haas
Hi Sergio, on 2005-03-04T22:21:15+01:00 you wrote: > I am looking for the name of the native fpc function for: DupeString, unit StrUtils. Take a look in the Run-Time library reference guide: http://www.freepascal.org/docs.html (Standard units reference manual). > function ReplicateStr(s:strin

Re: [fpc-pascal] Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Jeff Pohlmeyer wrote: My question : is the linker not smart enough to find out by itself where to look for those missing object files ? Not sure if I understand your question, but as Marc already mentioned, you can control this with the -k-L compiler switch. You can also control the way the co

[fpc-pascal] Embedded Linux

2005-03-20 Thread Carsten Bager
Hi I am trying to write some embedded code for an ARM7. (I am able to compile code to an ARM9 with Linux on it) I therefore need the ppcrossarm to produce absolute code. Version 1.9.4 had a fakertl in the source rtl, but in version 1.9.9 there is no files in it. Can I use the files from version

Re: [fpc-pascal] Dynamic arrays performance test.

2005-03-20 Thread DSTRODT
In a message dated 3/1/2005 5:00:35 A.M. Central Standard Time,  Agustin Barto [EMAIL PROTECTED] writes: I ran some test of several Extended matrix internal representationsto implement on an adaptation of Jedi_Math's matrix code (alreadycontributed some of this modifications). In the a

[fpc-pascal] function String Replication

2005-03-20 Thread Sergio Marcelo
I am looking for the name of the native fpc function for: function ReplicateStr(s:string;x:Integer): String; var i:Integer; Begin For i:=0 to x-1 do Result += s; end; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

Re: [fpc-pascal] Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Marc Santhoff wrote: Am Di, den 08.03.2005 schrieb Koenraad Lelong um 21:51: Marc Santhoff wrote: Am Mo, den 07.03.2005 schrieb Koenraad Lelong um 22:36: Hi, I'm trying to make an interface to a kind of library, but I'm stuck. Any pointers are welcome. There is a C-header file, but this is common

[fpc-pascal] Absolute

2005-03-20 Thread Carsten Bager
Hi I have a problem with the following when I try to compile it with the ppcrossarm compiler. This error dos not show when I am doing a normal compile. I have tried with version 1.9.4 and 1.9.9 Carsten -- Program bb; var test:integer absolute 0030; Begin End. --- >> b

[fpc-pascal] h2pas and #elif

2005-03-20 Thread Attila Kinali
Hi, I tryed to convert a couple of .h files to pascal units and run across the problem that #elif aren't converted properly, ie that they are left as (*** was #elif ){$else defined(WIN32)} and thus completely ignored. A quick look at the h2pas code revieled that this case isn't handled at al

Re: [fpc-pascal] ReAllocMem problem (?)

2005-03-20 Thread Marcel Martin
Micha Nelissen wrote: The problem with your approach is: how do you know whether the memory was extended, or left alone because there was no memory available to extend it ? In general, shortage of memory produces a runtime error, but this is configurable by a global var. No, that's easy. If

[fpc-pascal] Problem with a web page

2005-03-20 Thread Marcel Martin
Since tonight, I cannot access the 'last 7 days' bug page. Here is the error message Warning: mysql_connect(): User 'FPCUser' has exceeded the 'max_connections' resource (current value: 10) in /FPC/html/bugs/bugs.php on line 11 mm ___ fpc-pascal mailli

Re: [fpc-pascal] Re: Help needed with interfacing to C-object-files.

2005-03-20 Thread Koenraad Lelong
Koenraad Lelong wrote: Koenraad Lelong wrote: Jeff Pohlmeyer wrote: ... ... Second question : are c-double types and fpc-double types compatible ? This must be : c-float and fpc-double. Sorry for that. Koenraad. ___ fpc-pascal maillist - fpc-pascal@list

Re: [fpc-pascal] Re: [fpc-other] Access to the mailing list

2005-03-20 Thread Peter J. Haas
Hi, on 2005-03-20T16:10:38+01:00 I wrote: >>> Two days ago, I have send three mails to the fpc-pascal mailing list. ... Sorry, my mail client was not correct configured, the mail should post in the fpc-other mailinglist. On the other side, I have try to post the mail included in this mail repeat

[fpc-pascal] Re: [fpc-other] Access to the mailing list

2005-03-20 Thread Peter J. Haas
Hi Florian, on 2005-03-20T09:12:17+02:00 you wrote: >> Two days ago, I have send three mails to the fpc-pascal mailing list. >> One was published, the other two don't appear. In the meantime I have >> successful send a answer in the first thread, but every of the four >> attempts to send any of th

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Michael Van Canneyt
On Sun, 20 Mar 2005, Florian Klaempfl wrote: > > This is correct. In true Unix philosphy, I also use the tool I think fits > > the job best. > > This may or may not be Pascal. > > > > But look at it like this: Chess has a set of limited and strict rules > > which are not subject to change. Gran

Re: [fpc-pascal] Resources or alike

2005-03-20 Thread Michał Woźniak
> > Dnia sobota, 19 marca 2005 23:31, Nico Arag?n napisa?: > > > IIRC, you don't even need resources: > > > > > > copy /b program.exe + file.dat combined.exe > > > > > > Then you can open combined.exe from itself, seek to (filelength - > > > sizeofdatafile -1) and use blockread. > > > > Uhmm... I

Re: [fpc-pascal] Resources or alike

2005-03-20 Thread Marco van de Voort
[ Charset UTF-8 unsupported, converting... ] > Dnia sobota, 19 marca 2005 23:31, Nico Arag?n napisa?: > > IIRC, you don't even need resources: > > > > copy /b program.exe + file.dat combined.exe > > > > Then you can open combined.exe from itself, seek to (filelength - > > sizeofdatafile -1) and u

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Florian Klaempfl
Michael Van Canneyt wrote: On Sun, 20 Mar 2005, ml wrote: On Sun, 2005-03-20 at 02:55 +0200, Nikolay Nikolov wrote: ml wrote: Other possibilities like ['?','%','$','|','&','::','^'] were only named under btw. (and how can btw. under question 2 become the main flaming topic is out of my reason, ma

Re: [fpc-pascal] Resources or alike

2005-03-20 Thread bobmartin
How did you define ExeFile ? Micha? Wo?niak <[EMAIL PROTECTED]> wrote the following on 20/03/05 11:37:32: > Dnia sobota, 19 marca 2005 23:31, Nico Aragón napisał: > > IIRC, you don't even need resources: > > > > copy /b program.exe + file.dat combined.exe > > > > Then you can open combined.ex

Re: [fpc-pascal] Resources or alike

2005-03-20 Thread Michał Woźniak
Dnia sobota, 19 marca 2005 23:31, Nico AragÃn napisaÅ: > IIRC, you don't even need resources: > > copy /b program.exe + file.dat combined.exe > > Then you can open combined.exe from itself, seek to (filelength - > sizeofdatafile -1) and use blockread. Uhmm... I get a Runtime error 026 everytime

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Michael Van Canneyt
On Sun, 20 Mar 2005, ml wrote: > On Sun, 2005-03-20 at 02:55 +0200, Nikolay Nikolov wrote: > > ml wrote: > > > > >Other possibilities like ['?','%','$','|','&','::','^'] were only named > > >under btw. (and how can btw. under question 2 become the main flaming > > >topic is out of my reason, ma

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Nikolay Nikolov
ml wrote: But you're wrong for '::' '::' exists in perl too. Sorry, I don't speak perl :) I know only C, C++, Java, C# and Object Pascal. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Question about interfaces

2005-03-20 Thread Marco van de Voort
> Seems a bit sad to me that, I didn't get answer to "what I really asked" > but a lot of flaming posts about one btw. in my question, even subject > says "Question about interfaces" and not "Question about operators". > > 1. Couldn't interfaces support blind properties (specifying only read > wr