Re: [fpc-pascal] Is there a StringRefCount() equivalence?

2010-04-29 Thread Anton Tichawa
On Thu, 2010-04-29 at 10:30 -0700, Bihar Anwar wrote: > Delphi has StringRefCount() function (I'm not aware since what version it was > introduced). I just curious, is there a function equivalent to it in FPC? > Currently, I just steal a portion of code from System unit: > > type > PAnsiRec =

Re: [fpc-pascal] two small ?s - high(real) and nearest 2^x

2009-10-10 Thread Anton Tichawa
On Sat, 2009-10-10 at 10:14 -0700, David Emerson wrote: > 2. For the purposes of reserving memory in block sizes that can be > easily reallocated, I like to use powers of two. So if I have, e.g., a > dynamic array, I might start with a size of 1024 and then double it > when it hits capacity. Hop

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Anton Tichawa
On Wed, 2009-10-07 at 07:22 +0200, Jürgen Hestermann wrote: > Therefore, there is absolutly no difference between > > TFigure = record >X : TShapeList; >case TShapeList of > Rectangle: (Height, Width: Real); > Triangle: (Side1, Side2, Angle: R

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Anton Tichawa
On Tue, 2009-10-06 at 23:37 +0800, 章宏九 wrote: > Thank you. I saw all the examples you gave, but I still cannot master > how to use a variant record without a specified tag. > > For example: > type > TShapeList = (Rectangle, Triangle, Circle, Ellipse, Other); > TFigure = record > case TShap

Re: [fpc-pascal] Problem compiling an X client

2008-02-03 Thread Anton Tichawa
On Sun, 2008-02-03 at 13:13 +0100, Michael Van Canneyt wrote: > > On Sun, 3 Feb 2008, Anton Tichawa wrote: > > > Hello list! > > > > I have problems compiling an X client. The compiler says: > > > > Free Pascal Compiler version 2.2.0 [2007/08/31] for i386

[fpc-pascal] Problem compiling an X client

2008-02-03 Thread Anton Tichawa
Hello list! I have problems compiling an X client. The compiler says: Free Pascal Compiler version 2.2.0 [2007/08/31] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Linux for i386 Compiling pas/xdemo.pas PPU Loading /usr/local/lib/fpc/2.2.0/units/i386-linux/x11/x.ppu Recompiling

Re: [fpc-pascal] CASE

2005-11-08 Thread Anton Tichawa
Paul Davidson wrote: On Nov 8, 2005, at 12:11, Peter Vreman wrote: # [735] case l3o3.FormType of // Select 3o3 processor lwz r2,160(r1) cmplwi cr0,r2,0 beq cr0,L1051 cmplwi cr0,r2,1 beq cr0,L1052 cmplwi cr0,r2,2 beq

Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Anton Tichawa
Paul Davidson wrote: Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t; if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t

Re: [fpc-pascal] more memory for local var in function

2005-09-05 Thread Anton Tichawa
Jose Pascual wrote: Hi, I have a program that don't work if I declare a local array of 15000 bytes, but it works if the array is only for 500 bytes, Where is the problem? frame, heap, stack? how can I increase the memory for local vars in procedure/functions? tia best regards _

Re: [fpc-pascal] Freepascal 2.0 for cygwin

2005-08-22 Thread Anton Tichawa
Marc Santhoff wrote: Am Sonntag, den 21.08.2005, 16:19 -0700 schrieb L505: The first compilers were written in assembly language. This allowed for the next generation compilers to be written in a high level language. And the assembly language was just magically inserted

Re: [fpc-pascal] Linking pthread?

2005-08-20 Thread Anton Tichawa
Hi, David Butler wrote: Hi When I compile an application that uses libc under Linux I get: "/usr/bin/ld: cannot find -lpthread" From what I gather pthread is a standard library. How do I get the linker to find it? Thanks. David ___ fpc-pascal m

Re: [fpc-pascal] Calling unassigned procedure gives no stack trace with -gl

2005-07-14 Thread Anton Tichawa
Marco van de Voort wrote: On Thu, Jul 14, 2005 at 10:27:01AM +0200, Peter Vreman wrote: Tom Verhoeff a ?crit : The point is that there is no stack trace with line numbers on the (obviously correct) exception, in spite of the option -gl (even when explicitly using SysUtils). The

Re: [fpc-pascal] function returning a record vs paramaters

2005-07-09 Thread Anton Tichawa
L505 wrote: | procedure my_procedure(var a_record: t_my_record); | | In this case, a simple pointer is passed to my_procedure. This is also | the way most C libraries work, passing a pointer to a structure. Would a C program be able to call a Pascal SO or DLL file and directly read a record fro

Re: [fpc-pascal] function returning a record vs paramaters

2005-07-09 Thread Anton Tichawa
L505 wrote: When a function requires that more than one value must be returned, what are the advantages of returning one of these values in a paramater versus using a record that contains all the data? Example: A function needs to return an integer, string, and boolean. Why not just return a r

[fpc-pascal] Missing units documentation?

2005-01-15 Thread Anton Tichawa
Hello! After downloading and unzipping doc-html.zip (11.4M), I found that units/units.html, referenced by fpctoc.html, is missing. Where can I find units documentation? Thank you, Anton. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:

Re: [fpc-pascal] Mouse Problem

2004-10-09 Thread Anton Tichawa
Gualtiero Dellarole wrote: Hi, I read on FAQ for mouse problem: 1. The mouse cursor does not respond in the Windows IDE In windowed mode, the mouse cursor might not respond to mouse moves and clicks. Just change the properties of the console, and remove the quick edi

Re: [fpc-pascal] Explicit date from double format

2004-09-29 Thread Anton Tichawa
Michael Van Canneyt wrote: On Wed, 29 Sep 2004, Jilani Khaldi wrote: Hi All, Does somebody kown the algorithm to convert a date from the double format to an explicit format? Example: the function "now" givers me: 3.825956615197917E+004 I want to transform it in: year-month-day Why not

Re: [fpc-pascal]Yet another problem concerning Qualifiers

2004-07-10 Thread Anton Tichawa
[EMAIL PROTECTED] wrote: On Fri, 9 Jul 2004, Ron Weidner wrote: --- Marcel Martin <[EMAIL PROTECTED]> wrote: Anton Tichawa a ?crit : Hello List! Compiling the unit === unit test; interface procedure test.do_test; implementation procedure test.do_test; begin end; end. === resu

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-10 Thread Anton Tichawa
Hello, Ron! Ron Weidner wrote: Note: I don't see the definition of PWidget in your code peace. I assume it's a pointer to a record containing a string member named meta. But in your procedure procedure AddWidget(PWidget:pointer); you use the very same identifier, PWidget, for a variable name. Th

Re: [fpc-pascal]Linked List/ pointers/ casting/ OOP Question

2004-07-09 Thread Anton Tichawa
Hello! Ron Weidner wrote: I thought I was getting closer to understanding pointers but it appears that I'm still not getting it. I wrote the following code fragment but it doesn't compile. the errors I get are... Widget_container_class.pas(80,27) Error: Illegal qualifier Widget_container_class.pas

[fpc-pascal]Yet another problem concerning Qualifiers

2004-07-09 Thread Anton Tichawa
Hello List! Compiling the unit === unit test; interface procedure test.do_test; implementation procedure test.do_test; begin end; end. === results in compiler errors: test.pas(5,15) Error: overloaded identifier TEST isn't a function test.pas(5,15) Fatal: Syntax error, ; expected but . found IMHO, t

Re: [fpc-pascal]Memory leak in freepascal, FreeAndNil not working properly?

2004-06-23 Thread Anton Tichawa
Matt Emson wrote: You code is wrong, it also crashes with kylix. What kind of answer is this? The correct one? To remove an item from a TList you must: (a) set it to nil and pack the list e.g. list[0] := nil; list.pack; (b) call TList.Delete(index) e.g. list.delete(0); (c) use TList.

Re: [fpc-pascal]there is a problem in fpc daily binary snapshot

2004-06-23 Thread Anton Tichawa
Cristiano Magro wrote: hi when i install the today snapshot the compiler show this version: C:\pp\bin\win32>ppc386.exe -v Hint: End of reading config file fpc.cfg Free Pascal Compiler version 1.9.3 [2004/04/05] for i386 Copyright (c) 1993-2004 by Florian Klaempfl Fatal: No source file name in comma

[fpc-pascal]problem with ld and / or freepascal

2004-06-19 Thread Anton Tichawa
Hello, List! I'm writing a program that semi-automatically reviews itself. Among other parameters used to evaluate the quality of a given version, I use the size of it's executable file. Though meaningful and even a small performance issue, this parameter is very coarse-grained. Does Freepascal

Re: [fpc-pascal]Re: [fpc-pascal]Re: [fpc-pascal]Can't find lmysqlclient What I'm missing?

2004-06-07 Thread Anton Tichawa
Eduardo Lopez wrote: Anton Tichawa escribió: Excuse me if I#m wrong, but shouldn't that read: ln -s libmysqlclient.so.10.0.0 libmysqlclient.so ('lib' instead of 'l' in the second argument) I'm sorry, but the error say: can't find _lmysqlclient_ traditionally, l

[fpc-pascal]Re: [fpc-pascal]Re: [fpc-pascal]Can't find lmysqlclient ¿What I'm missing?

2004-06-07 Thread Anton Tichawa
Michael Van Canneyt wrote: On Mon, 7 Jun 2004, Eduardo Lopez wrote: Hello all: I'm just trying to compile the testdb.pp and I get the following error: ./ld:can't find lmysqlclient 1) I'm working with Mandrake 8.2 2) Installed mysql with all library (database and development) 3) Installed

Re: [fpc-pascal]opening files from a text list

2003-12-22 Thread Anton Tichawa
Hello! On Monday 22 December 2003 19:37, DONALD PEDDER wrote: >When I've read everything up to the score (using scanblack/scanwhite), > and then do "read(line,awayscore)" the program hangs (using read now, as I > want to read the number and not a word). Experimentation showed me it was > waiti

[fpc-pascal]bug in 1.0.10? sizeof(cmyclass) returns instance size

2003-12-13 Thread Anton Tichawa
Hello, List! Using ppc386 version 1.0.10, sizeof(cmyclass) returns the size of the instance, e. g. 260 when there is one 'string' member, whereas ppc386 version 1.0.6 returns the expected size of a pointer, 4. Is this a bug, or a deliberate change? $: cat top/testsize.pas program testsize; ty

Re: [fpc-pascal]opening files from a text list

2003-11-29 Thread Anton Tichawa
er appear within a valid word. @Donald: There ARE problems when reading numbers, e. g. "1000.0" is sometimes written as "1000,0", "1'000.0", "1,000.00" or even "1,000.--". It's a matter of negotiation: The more formal the text file, the

Re: [fpc-pascal]opening files from a text list

2003-11-27 Thread Anton Tichawa
canwhite(line); if scanblack(line) <> 'at' then begin writeln('syntax error'); halt; end; scanwhite(line); home := scanblack(line); writeln('AWAY: ', away, '; HOME: ', home); end. hth, Anton. -- Ing. Anton Tichawa Volker

Re: [fpc-pascal]Calling Procedures via pointers

2003-10-29 Thread Anton Tichawa
f (pCallBack<>NIL) then              pCallBack;        else              Halt; End; begin pCallBack := nil; end. hth, Anton. -- Ing. Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien phone: +43 1 218 97 59 email: [EMAIL PROTECTED] -- "Adas Methode war, wie si

Re: [fpc-pascal]Trivial Graphics on Linux?

2003-10-21 Thread Anton Tichawa
tsch hello! I already posted this some time ago .. program xdemo; // free pascal x / x11 demo, free software, by anton tichawa uses x, xlib, linux; var TheDisplay: PDisplay; TheScreen: Longint; TheDrawable: TDrawable; TheGC: PXGC; BlackColor: longint; WhiteColor: longint;

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Anton Tichawa
) also doesn't make any sense True. So I think the best way is either to declare var q1, q2: int64; or, if they have to be qwords for some reason, to typecast: writeln(abs(int64(q1) - int64(q2))); Still, the documentation states "any numerical type". If there's time f

Re: [fpc-pascal]QWord vs. function Abs

2003-08-20 Thread Anton Tichawa
Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Ing. Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien phone: +43 1 218 97 59 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]class variable

2003-04-04 Thread Anton Tichawa
e war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Ing. Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien phone: +43 1 218 97 59 mobil: +43 664 52

Re: [fpc-pascal]class variable

2003-04-04 Thread Anton Tichawa
ve to be used for class variables and class methods. By class properties, I mean properties that only access class members (class variables and class methods), and are accessible with the syntax: .. When trying class methods, I found that the executable behaves strange: Invoking a class metho

Re: [fpc-pascal]class variable

2003-04-03 Thread Anton Tichawa
e war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Ing. Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien phone: +43 1 218 97 59 mobil: +

Re: [fpc-pascal]OT: An FPC program in LinuxFormat Magazine

2003-03-24 Thread Anton Tichawa
hing like: *** begin repeat writeln('hello, world!'); if keypressed() then begin bla bla .. end; until false; end. *** because that might be of value in the future. that's a common feature of pascal and rock'n'roll, isn't it? anton. -

Re: [fpc-pascal]OT: An FPC program in LinuxFormat Magazine

2003-03-24 Thread Anton Tichawa
is certainly NOT dead and > any of my software engineer lecturers will agree with it's use as a > language for developing software. > > my 2 cents... btw - please can you explain that idiom - "my 2 cents"? thanx. -- "Adas Methode war, wie sich zeigen w

Re: [fpc-pascal]OT: An FPC program in LinuxFormat Magazine

2003-03-24 Thread Anton Tichawa
begin repeat writeln('hello, world!'); if keypressed() then begin bla bla .. end; until false; end. *** because that might be of value in the future. that's a common feature of pascal and rock'n'roll, isn't it? anton. -- "

Re: [fpc-pascal]Class Identification?

2003-03-24 Thread Anton Tichawa
- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED]

Re: [fpc-pascal]Class Identification?

2003-03-23 Thread Anton Tichawa
n." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Anton Tichawa
On Friday 21 March 2003 14:02, you wrote: > On Fri, Mar 21, 2003 at 02:04:39PM +0100, Michael Van Canneyt wrote: > > On Fri, 21 Mar 2003, Anton Tichawa wrote: > > > On Friday 21 March 2003 13:09, you wrote: > > > > > On Friday 21 March 2003 12:29, you wrote: > &

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Anton Tichawa
l left on the stack. > > The allocation on the heap has already been changed to allocation on the > stack in 1.1, because hat is much faster. Using a predefined storage of N > exception levels is adding a limit and that is something we want to > prevent. but also the power-switc

Re: [fpc-pascal]Constructor failing...

2003-03-21 Thread Anton Tichawa
lost, as it can be saved by allocating the 'normal' stack or 'normal' heap more tightly - the old system has to reserve exception spae implicitely on the stack or on the heap. what do you think about that? anton. -- "Adas Method

Re: [fpc-pascal]Constructor failing...

2003-03-20 Thread Anton Tichawa
don't have the > time to analyze what the cause is that the exception frame is not removed. > > > > _______ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal Maybe off-topic,

Re: [fpc-pascal]STOP! DONT START THAT PROGRAM - IT MAY CRASH!

2003-03-19 Thread Anton Tichawa
ngen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [E

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Anton Tichawa
On Wednesday 19 March 2003 16:39, you wrote: > Anton Tichawa wrote: > > Well, safety is still important. You should use the returned count in > > your procedure to be on the safe soide. The end might come sooner than > > expected. > > Right now I terminate the program

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Anton Tichawa
Hello, Preben! Safety First! On Wednesday 19 March 2003 16:04, you wrote: > Anton Tichawa wrote: > > There are several other things too in this old procedure, that might > > still cause errors or need optimization. If you want, I'll write a small > > procedure

Re: [fpc-pascal]blockread/write?

2003-03-19 Thread Anton Tichawa
o money or any other thing. Hope ths helps, Anton. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien

[fpc-pascal]STOP! DONT START THAT PROGRAM - IT MAY CRASH!

2003-03-19 Thread Anton Tichawa
de war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- _

Re: [fpc-pascal]Do you know fpmath

2003-03-14 Thread Anton Tichawa
ace (London 1977). ------ Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: RE: [fpc-pascal]FPC for a middleware application

2003-03-14 Thread Anton Tichawa
are essentially the same. Really, I'm not sure if Microsfot Widows actually know(s?) that simple fact .. anton. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). --

Re: [fpc-pascal]FPC for a middleware application

2003-03-14 Thread Anton Tichawa
gs. anton. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien

Re: RE: [fpc-pascal]FPC for a middleware application

2003-03-13 Thread Anton Tichawa
Microsoft to join the band. anton. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664

Re: [fpc-pascal]compiler 's use

2003-02-26 Thread Anton Tichawa
not subscribed to the mailing list, you may respond directly to me. Anton. -- "Adas Methode war, wie sich zeigen wird, Tagtr?ume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 1

Re: [fpc-pascal]How to obtain runtime type of class?

2003-02-25 Thread Anton Tichawa
wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EM

Re: [fpc-pascal]How to obtain runtime type of class object in debugger ?

2003-02-25 Thread Anton Tichawa
n." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). ------ Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists

Re: [fpc-pascal]creating DLL with FPC 1.0.6

2003-02-24 Thread Anton Tichawa
specifying a full absolute path and verifying if the file 'myplugin.dll' actually exists under that name? hth, Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Count

Re: [fpc-pascal]memw

2003-02-23 Thread Anton Tichawa
ngen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED

Re: [fpc-pascal]ExtractFileDir ?

2003-02-12 Thread Anton Tichawa
'well-structured'. Should I post a new, tested "repeat - break - break - until" version of this function? Anton. > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- --

Re: [fpc-pascal]SysUtils.FileExists bug under Go32v2

2003-02-12 Thread Anton Tichawa
ested twice, shows the poor quality of the API. BTW: How and where can I obtain the original microsoft 32-bit windows API help files, and what names do they have? I thing *.chm or so? HTH Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Be

Re: [fpc-pascal]SysUtils.FileExists bug under Go32v2

2003-02-12 Thread Anton Tichawa
-1 ); > end; I'll have a look at that .. Anton Tichawa. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-12 Thread Anton Tichawa
Only those cases where Step 3 is bug-free, would then be executed .. Anton. "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 2

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-11 Thread Anton Tichawa
e. i'm talking about, well, excuse my poor english here, fehler (d) = errrors (e) (?), because in every such "thing" is one bit of truth that will surely be reconsidered as free pascal development continues. no bug must be lost, or so .. uh. anton tichawa. -- "Adas M

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-11 Thread Anton Tichawa
on of the fourier transform or creating an aboriginal version of the VCL? > Thank you, Carl. > Thank you, Daniël. > Thank you, Florian. > Thank you, Jonas. > Thank you, Marco. > Thank you, Michael. > Thank you, Peter. > Thank you, Pierre. i aggree. anton tichawa.

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-11 Thread Anton Tichawa
me kind of progress. This, too, is very hard to do under windows. Anton Tichawa. > can also contribute eg a (non OO) FP test unit? if you like. Any ideas > about how to define the 'features' to be tested? Regards John > > -Original Message- > > Hello, List! >

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-11 Thread Anton Tichawa
elace (London 1977). ------ Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-11 Thread Anton Tichawa
dard results and produces a list of newly introduced bugs? Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 /

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-11 Thread Anton Tichawa
make range checks inline, but at a first glance it seems to me that this would require reworking of very old (legacy?) parts of the compiler. HTH Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Lang

Re: [fpc-pascal]FPC Problem with reAllocMem...

2003-02-11 Thread Anton Tichawa
Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). ------ Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL

Re: [fpc-pascal]MySQL code...

2003-02-10 Thread Anton Tichawa
nzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PR

Re: [fpc-pascal]Macros in FPC

2003-02-10 Thread Anton Tichawa
Every "call" to saturated_square within the same unit will be inlined. HTH Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -

Re: [fpc-pascal]Understanding the compiler sources

2003-02-10 Thread Anton Tichawa
Bauer and J. Eickel, 2nd Edition, Springer 1976. HTH Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20

Re: [fpc-pascal] there's need for static uninitialized objects

2003-02-10 Thread Anton Tichawa
nsion: real; end; type t_window = whole // a static object x0, y0, x1, y1: integer; procedure clear(a_title: string); end; type t_char_device = whole // an interface function char_available: boolean; function read_char: char; end; I think this could be a new thread, so I renamed the

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread Anton Tichawa
0 to num - 1 do begin p[i].draw; end; freemem(p); // the memory manager knows where and how much to free end. *** I didn't actually compile and test this piece of code - there might be errors. cheers - anton tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagtr

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread Anton Tichawa
all. Next question? HTH Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 66

Re: [fpc-pascal]Classes/Objects/Pointers / Pointer Help

2003-02-10 Thread Anton Tichawa
s normally switched OFF, forcing SAFE mode, disallowing references to address 0 with a pointer, requiring action to follow previous negotiations. Any ideas how to continue this topic? Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen

Re: [fpc-pascal]Error: The object arg1 has no VMT

2003-02-09 Thread Anton Tichawa
fpc-pascal -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email:

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread Anton Tichawa
> Btw, I'm using short strings, so I think it'll be ok for now... > > > Read the Manual - Free Pascal Programmer's Manual, Section 4.5, "Writing > > Your Own Memory Manager" - because that's what you're actually doing. > > > > HTH >

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread Anton Tichawa
On Sunday 09 February 2003 12:54, you wrote: > freeMem(tmpStrings, sizeOf(String) * (N)); No, only: freeMem(tmpStrings); Read the Manual - Free Pascal Programmer's Manual, Section 4.5, "Writing Your Own Memory Manager" - because that's what you're actuall

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread Anton Tichawa
> memory? > > freeMem(tmpStrings, sizeOf(String) * (N)); > HTH, Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Ticha

Re: [fpc-pascal]Pointer Help

2003-02-09 Thread Anton Tichawa
(tmpStrings, SizeOf(String) * (I + 1));} Even then, I don't know if fpc behaves correctly converning deallocation when defaults to . Maybe somebody else can respond to this? Another note: Please replace tabulators by spaces when posting code. Hope this Helps. Anton Tichawa. On Sund

Re: [fpc-pascal]isprime()

2003-02-09 Thread Anton Tichawa
355867 // ok duration (ms) 5146543 primes_v: max_prime_mask 4 num_primes 26355867 duration (ms) 606424 primes_m: max_prime_mask num_primes 1229 // ok duration (ms) 357 primes_v: max_prime_mask num_primes 1

Re: [fpc-pascal]isprime()

2003-02-07 Thread Anton Tichawa
sly it may be used by an external > unit, anyhow let me know if it might not be bad the idea to implement > the function on the compiler. The RTL? Does the function return false for 0 and 1? How easy isit to upgrade for > 64 bit lengths? MfG, Anton Tichawa. -- "Adas M

Re: [fpc-pascal]Unit Graph with Linux (Knoppix) or alternative unit

2003-02-06 Thread Anton Tichawa
o, it is tightly coupled to all my other sources .. Well, I don't know how to handle a transfer of such sources to you, because I doubt about the idea of proprietary-doom .. do u have any idea? Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in of

Re: [fpc-pascal]Linking to Windows

2003-02-06 Thread Anton Tichawa
or ASCIIZ string returns: 0 = error (call GetLastError); else address of DLL function Hope this Helps. Anton Tichawa. On Wednesday 05 February 2003 15:58, you wrote: > At 19:10 04-02-2003 -0500, you wrote: > >You can get the SDK help files from Borland: > > > >ftp://ftp.

Re: [fpc-pascal]Linking to Windows

2003-02-04 Thread Anton Tichawa
> > fpc-pascal maillist - [EMAIL PROTECTED] > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Linking to Windows

2003-02-04 Thread Anton Tichawa
find them in Microsoft's home page. > > Hans M. > > ___ > fpc-pascal maillist - [EMAIL PROTECTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- -- "Adas Methode war, wie sich zeigen wird, Tagträum

Re: [fpc-pascal]Linking to Windows

2003-02-04 Thread Anton Tichawa
ovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]wxWindwos with FreePascal ? Or other GUI

2003-02-04 Thread Anton Tichawa
Hi, Martin! I strongly recommend considering a GUI taht does not support micosoft windows - it's a gain in truth, it makes live easier, or something like that .. if you take -any- gui that runs on top of X, you'll be on the safe side. linux is coming .. hope this helps, ant

Re: [fpc-pascal]Linking to Windows

2003-02-03 Thread Anton Tichawa
Hello, List! .. and I remember some sort of 'DLL viewer', or 'Quick View', at least in winnt (or Windows Commander?), that showed dll porperties, including procedure names and indices .. it's difficult to work with indices, isn't it? Anton Tichawa. -

Re: [fpc-pascal]Linking to Windows

2003-02-03 Thread Anton Tichawa
t find them in microsoft's (API?) documentation. Hope this helps, Anton Tichawa. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tich

Re: [fpc-pascal]FPC vs. GPC (was:FPC 1.0.6 and open arrays)

2003-01-28 Thread Anton Tichawa
re the standard requires too much typing. Anton. -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil

Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Anton Tichawa
e in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 / 20 A-1020 Wien mobil: +43 664 52 07 907 email: [EMAIL PROTECTED] -- ___ fpc-pascal mailli

Re: [fpc-pascal]SetUid; PARANOIA

2003-01-24 Thread Anton Tichawa
CTED] > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- "Adas Methode war, wie sich zeigen wird, Tagträume in offenbar korrekte Berechnungen einzuweben." Doris Langley Moore: Ada, Countess of Lovelace (London 1977). -- Anton Tichawa Volkertstrasse 19 /