Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-06 Thread Martin Schreiber
On Monday 05 October 2009 15:44:55 Felipe Monteiro de Carvalho wrote: Is it possible to have 2 dataset objects sharing the same memory database? Or else any ideas of how to solve this problem other then constantly writing changes to the disk and reloading the read dataset? tmsebufdataset

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-06 Thread Michael Van Canneyt
On Mon, 5 Oct 2009, Felipe Monteiro de Carvalho wrote: On Mon, Oct 5, 2009 at 3:24 PM, David Emerson dle...@angelbase.com wrote: Maybe you could do a sync operation or some such, to force changes to be written to disk. It would probably slow the system down, but you might be able to get it

[fpc-pascal] Re: Support for C++ library format?

2009-10-06 Thread Juha Manninen
Hi, Ok, I understand the situation. I guess I am looking for a perfect world where you could choose your language more freely and still use all the great libraries out there. I think support for GCC C++ libraries in FPC could be done with enough effort. It would be much more difficult than

Re: [fpc-pascal] Re: Support for C++ library format?

2009-10-06 Thread Jonas Maebe
On 06 Oct 2009, at 10:25, Juha Manninen wrote: A common library format for compiled OO languages would be a real improvement, competing directly with the development happening in dynamic / interpreted languages. I guess I am not the first person to have this idea, but... wrote it

[fpc-pascal] Clear interactive questions with default values management ?

2009-10-06 Thread Tom__G
Hi, Following another post on menu building I'd like to know if someone could help me to build such kind of interactive Linux console questions : Question 1 [Default_Value_1] ? Default_Value_1- default value appears here if/when I press ENTER (without providing another custom value)

[fpc-pascal] Re: Support for C++ library format?

2009-10-06 Thread Juha Manninen
Thanks for your answer. Now I admit the C++ library support was a bad idea. Even the different C++ compilers are not binary compatible. It is a big mess. I liked the design of .NET, yes. However, I think compiling CIL to machine code is not the same thing as with real compiled languages. I

Re: [fpc-pascal] Re: Support for C++ library format?

2009-10-06 Thread Jonas Maebe
On 06 Oct 2009, at 13:28, Juha Manninen wrote: I liked the design of .NET, yes. However, I think compiling CIL to machine code is not the same thing as with real compiled languages. It can be. At least my experience is that any program run under .NET or Mono starts slowly and hogs

Re: [fpc-pascal] Dataset modification and reading at the same time

2009-10-06 Thread Felipe Monteiro de Carvalho
You are right, but what I want isn't append, I want to insert after the current record, not in the end of the dataset. It seams that what I need is a new button option to TDBNavigator, maybe nbInsertAfter. -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Henry Vermaak
2009/10/6 章宏九 secludeds...@gmail.com: In the document (http://www.freepascal.org/docs-html/ref/refsu15.html#x38-450003.3.2) I read the code below: Type  MyRec = Record          X : Longint;          Case byte of            2 : (Y : Longint;                 case byte of                 3

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Felipe Monteiro de Carvalho
On Tue, Oct 6, 2009 at 10:13 AM, 章宏九 secludeds...@gmail.com wrote: Type  MyRec = Record          X : Longint;          Case byte of            2 : (Y : Longint;                 case byte of                 3 : (Z : Longint);                 );          end; I think the cases are useless

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Henry Vermaak
2009/10/6 Henry Vermaak henry.verm...@gmail.com: I can't really comment on the scary details, since I'm rubbish at object oriented programming :) And objects aren't deprecated, since the compiler uses them (afaik). Henry ___ fpc-pascal maillist -

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Frank Peelo
On 06/10/2009 15:00, Felipe Monteiro de Carvalho wrote: On Tue, Oct 6, 2009 at 10:13 AM, 章宏九 secludeds...@gmail.com wrote: Type MyRec = Record X : Longint; Case byte of 2 : (Y : Longint; case byte of 3 : (Z : Longint); );

Re: [fpc-pascal] Case in Record

2009-10-06 Thread 章宏九
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 TShapeList of Rectangle: (Height, Width: Real);

[fpc-pascal] Early BSD's Pascal system

2009-10-06 Thread 章宏九
I notice that in early 1977, BSD contains a Pascal interpreter (or maybe compiler, I am not sure). How was it later? Is there any remain archives? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Early BSD's Pascal system

2009-10-06 Thread Marco van de Voort
In our previous episode, ? said: I notice that in early 1977, BSD contains a Pascal interpreter (or maybe compiler, I am not sure). How was it later? Is there any remain archives? Yes, more commonly known Berkeley Pascal. The manual,

Re: [fpc-pascal] Early BSD's Pascal system

2009-10-06 Thread David W Noon
On Tue, 6 Oct 2009 23:44:28 +0800, 章宏九 wrote about [fpc-pascal] Early BSD's Pascal system: I notice that in early 1977, BSD contains a Pascal interpreter (or maybe compiler, I am not sure). How was it later? Is there any remain archives? I suspect it is the UCSD (University of California at

Re: [fpc-pascal] Early BSD's Pascal system

2009-10-06 Thread 章宏九
Thank you for your detailed information. 2009/10/6 Marco van de Voort mar...@stack.nl: In our previous episode, 章宏九 said: I notice that in early 1977, BSD contains a Pascal interpreter (or maybe compiler, I am not sure). How was it later? Is there any remain archives? Yes, more commonly

[fpc-pascal] Help collecting GetAppConfigDir output

2009-10-06 Thread Felipe Monteiro de Carvalho
Hello, I am trying to collect the output of GetAppConfigDir/File from various systems, but I don't have easy access to a Windows Vista computer. Maybe someone would be kind enough to run the following trivial application in Windows Vista and return the output =) thanks in advance, program

Re: [fpc-pascal] Early BSD's Pascal system

2009-10-06 Thread Mehmet Erol Sanliturk
David W Noon wrote: On Tue, 6 Oct 2009 23:44:28 +0800, 章宏九 wrote about [fpc-pascal] Early BSD's Pascal system: I notice that in early 1977, BSD contains a Pascal interpreter (or maybe compiler, I am not sure). How was it later? Is there any remain archives? I suspect it is the UCSD

Re: [fpc-pascal] Help collecting GetAppConfigDir output

2009-10-06 Thread Martin
Felipe Monteiro de Carvalho wrote: FPC 2.2.4? The implementation changed of this routine changed in recent versions. thanks, last result was with Free Pascal Compiler version 2.5.1 [2009/09/22] for i386 just tried with Free Pascal Compiler version 2.2.5 [2009/04/03] for i386 same results:

Re: [fpc-pascal] Help collecting GetAppConfigDir output

2009-10-06 Thread Felipe Monteiro de Carvalho
Thanks a lot. The change I was talking about was between 2.2.0 and 2.2.4 -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Help collecting GetAppConfigDir output

2009-10-06 Thread Martin
Felipe Monteiro de Carvalho wrote: Thanks a lot. The change I was talking about was between 2.2.0 and 2.2.4 Yep, here are the results with the oldest fpc, I still have... (2.2.2 seems to have the newer/other result) Free Pascal Compiler version 2.2.0 [2007/11/14] for i386

Re: [fpc-pascal] Case in Record

2009-10-06 Thread 章宏九
I see. That means if no tag name is given, I should make sure my code is correct by myself. Thank you. 2009/10/7 Anton Tichawa anton.tich...@chello.at: 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

Re: [fpc-pascal] TUN/TAP

2009-10-06 Thread Jorge Aldo G. de F. Junior
ifreq becomes Const TUNSETIFF = $400454ca IFF_TUN = $0001 IFF_TAP = $0002 type ifreq = record ifr_ifrn : record case longint of 0 : ( ifrn_name : array[0..15] of char ); end; ifr_ifru : record case longint

Re: [fpc-pascal] Case in Record

2009-10-06 Thread Jürgen Hestermann
AFAIK there has to be some fixed part before the variant, e. g. TFigure = record name: string; case TShapeList of Rectangle: (Height, Width: Real); Triangle: (Side1, Side2, Angle: Real); Circle: (Radius: Real); Ellipse, Other: (); end; The program could then

Re: [fpc-pascal] TUN/TAP

2009-10-06 Thread Jürgen Hestermann
Jorge Aldo G. de F. Junior schrieb: type ifreq = record ifr_ifrn : record case longint of 0 : ( ifrn_name : array[0..15] of char ); end; ifr_ifru : record case longint of 0 : ( ifru_addr : sockaddr