[fpc-pascal] error in pascal program

2009-06-16 Thread ak za
Hello I use turbo_pascal  language for learning. I write a program  (T3ch18.pas) which use two units – (Uadd_pro.pas) and  (Un3ch 18.pas). In unit  Uadd_pro.pas , I used procedure ask. It works true when I test it only, but when I use them together,  above mentioned procedure in line – readLn-

[fpc-pascal] Re: error in pascal program

2009-06-16 Thread Vincent Snijders
ak za schreef: Hello Please subscribe to the fpc-pascal mailing list. http://lists.freepascal.org/mailman/listinfo/fpc-pascal Maybe the moderator will let it through, though. But if you are subscribed you receive the answers directly. Vincent

[fpc-pascal] Re: error in pascal program

2009-06-16 Thread Jonas Maebe
On 16 Jun 2009, at 07:50, Vincent Snijders wrote: ak za schreef: Hello Please subscribe to the fpc-pascal mailing list. http://lists.freepascal.org/mailman/listinfo/fpc-pascal He is subscribed, but the message was held for moderator approval because there were too many recipients. Too

[fpc-pascal] Generic a Clone method

2009-06-16 Thread Torsten Bonde Christiansen
Hi. I was wondering if it is posible to make this type of construct for creating a generic Clone method: (I put it in pastebin): http://pastebin.com/fb495ed7 Explained in words - I'm trying to make a clone method that should be able to copy the content of private variables to a destination

Re: [fpc-pascal] Generic a Clone method

2009-06-16 Thread Martin Friebe
Torsten Bonde Christiansen wrote: Hi. I was wondering if it is posible to make this type of construct for creating a generic Clone method: (I put it in pastebin): http://pastebin.com/fb495ed7 Explained in words - I'm trying to make a clone method that should be able to copy the content of

Re: [fpc-pascal] Generic a Clone method

2009-06-16 Thread Torsten Bonde Christiansen
Martin Friebe wrote: There is Object.InstanceSize, which sounds as if it may be what you are looking for. But you have a bigger problem than that. Thanks - i'll try that. If any member (object variable) is of a ref-counted type (that is strings and dynamic arrays), then any memory copy

Re: [fpc-pascal] FPC on USB

2009-06-16 Thread Graeme Geldenhuys
Thomas Nelson wrote: that FPC writes to the windows registry and was curious as to how critical that information is to the operation of FPC from the USB. I was not aware of that. What is actually written to the registry? I thought the compiler only uses the fpc.cfg file. Regards, - Graeme

Re: [fpc-pascal] error in pascal program

2009-06-16 Thread Michael Van Canneyt
On Tue, 16 Jun 2009, Graeme Geldenhuys wrote: program T3ch18; {an answer for tamrine 3 of chapter 18. writer :Akbar Zamani date:1388/3/15} ^ Wow, that is a rather old computer program. :-) Not if it is an arabic or muslim date, I believe they started in

Re: [fpc-pascal] FPC on USB

2009-06-16 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: that FPC writes to the windows registry and was curious as to how critical that information is to the operation of FPC from the USB. I was not aware of that. What is actually written to the registry? I thought the compiler only uses the

[fpc-pascal] switch units depending on OS and lib version

2009-06-16 Thread Marc Santhoff
Hi! There is a pascal wrapper for a library. The library comes in different versions. The library is specialized per operating system. How can I make fpc pick the right OS- and release version of the library? I know I could fiddle something using ifdef's, but since the rtl is build around

Re[2]: [fpc-pascal] Generic a Clone method

2009-06-16 Thread JoshyFun
Hello FPC-Pascal, Tuesday, June 16, 2009, 2:27:07 PM, you wrote: TBC Martin Friebe wrote: There is Object.InstanceSize, which sounds as if it may be what you are looking for. But you have a bigger problem than that. TBC Thanks - i'll try that. From my point of view a generic clone method can

Re: [fpc-pascal] Generic a Clone method

2009-06-16 Thread Martin Friebe
Torsten Bonde Christiansen wrote: Martin Friebe wrote: If any member (object variable) is of a ref-counted type (that is strings and dynamic arrays), then any memory copy will mess up. Because in the objects memory, there only are the pointers to the data of strings, and dyn-arrays. If

[fpc-pascal] is someone passing around the wrong sender?

2009-06-16 Thread Richard Jasmin
The server keeps bouncing list replies for some reason. No, I dont think on second thought that last message was me.Yes, I did at one time reply all.Will take under consideration. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] FPC on USB

2009-06-16 Thread Thomas Nelson
Thank you - having the extensions registered is not a large problem, as I don't mind typing in .pp or .pas - I should be able to set the Path - PathExt - and associations via a batch file.   Thanks to everyone for their assistance on this.   Tom --- On Tue, 6/16/09, Marco van de Voort

[fpc-pascal] Assembly error during compile

2009-06-16 Thread brentbrown1
I recently installed v 2.2.4 of xcode and the pascal compiler on a mac w/ OS X.5.  During compile of the "hello world" program I got the following: Target OS: Darwin for i386Compiling hello.pasAssembling helloError: Assembler as not found, switching to external assemblingFatal: There were 1 errors

Re: [fpc-pascal] Assembly error during compile

2009-06-16 Thread Jonas Maebe
On 16 Jun 2009, at 19:57, brentbro...@verizon.net wrote: I recently installed v 2.2.4 of xcode and the pascal compiler on a mac w/ OS X.5. During compile of the hello world program I got the following: Target OS: Darwin for i386 Compiling hello.pas Assembling hello Error: Assembler as

Re: Re: [fpc-pascal] Assembly error during compile

2009-06-16 Thread brentbrown1
jonasThanks for the reply.  The installer didn't allow for any options.  Should I use some other install proc?Again, thanksBrentOn Jun 16, 2009, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 16 Jun 2009, at 19:57, brentbro...@verizon.net wrote: I recently installed v 2.2.4 of xcode and the

Re: [fpc-pascal] switch units depending on OS and lib version

2009-06-16 Thread leledumbo
You've known the answer, use include files! The compiler information (i.e. target platform) can be obtained via fpc -iXXX (see fpc -h for XXX values). Use that value in a script (i.e. Makefiles) to subtitute directory names. That's what the compiler do all this time. -- View this message in