Re: [fpc-pascal] accessing files from a function

2011-05-16 Thread Doug Chamberlin
On 5/15/11 8:28 PM, John Lee wrote: I'd like to put the assign and reset of a text file into a function, and then use the function to return a line from the file, without needing to close the file then re assign and reset every time (for performance reasons) - see below for my attempt. This

Re: [fpc-pascal] Re: Name of the programming language used in/with FPC

2011-02-17 Thread Doug Chamberlin
On 2/17/11 12:04 PM, Frank Church wrote: How about Dijkstra? Where can I send a letter to the editor saying Naming the language Dijkstra is considered harmful. ;) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] about dynamic array

2010-05-06 Thread Doug Chamberlin
On 5/6/2010 3:12 PM, José Mejuto wrote: Entering the doom again... Next question could be why: p1: TObject; p2: TObject; p1:=TObject.Create(); p2:=p1; P1.free; p1:=nil; Why I get an AV if accesing p2 ? Because the object has been freed... So why is not p2 = nil as p1 ? The short answer is

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-04 Thread Doug Chamberlin
On 5/4/2010 3:11 PM, Vinzent Höfler wrote: The dynamic array simply fails the principle of least surprise. No more, no less. OK. You are correct. Now can we move on? Doug C. - A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A:

Re: [fpc-pascal] dynamic array contents and system.move

2010-04-27 Thread Doug Chamberlin
On 4/27/2010 2:04 AM, Jürgen Hestermann wrote: An identifier should always refer to a memory address/location. If the type of the data at that memory location is a pointer then it should be possible to change the expression to the memory address of the data by dereferencing it with ^. But for

Re: [fpc-pascal] pointer to anything

2010-04-23 Thread Doug Chamberlin
On 4/23/2010 3:33 AM, spir ☣ wrote: Say I want to implement a kind of linked list which node data may be anything. Thus I cannot store data on place (in nodes), indeed; so it should be referenced. But pointers themselves are supposed to be typed. So, how can I do that? The key to

Re: [fpc-pascal] some new features to delphi prisem

2010-02-24 Thread Doug Chamberlin
On 2/24/2010 2:48 AM, Matt Emson wrote: I think an interjection at this point is required - all of this is down to personal experience, preference and style. It is what you are used to. Having done 10+ years of Pascal, yes this is very alien. Having done 5+ years of C# and C based languages,

Re: [fpc-pascal] FPC class syntax was extended to support delphi code

2010-01-13 Thread Doug Chamberlin
David Emerson wrote: b. What does strict private mean, as opposed to private without strict? (My best guess is that it would be accessible only within the methods+properties of that class within the unit, as opposed to being available anywhere in the same unit where the class is

Re: [fpc-pascal] FPC class syntax was extended to support delphi code

2010-01-13 Thread Doug Chamberlin
David Emerson wrote: Doug Chamberlin wrote: Class methods allow you to call the method without instantiating the class first. For example, Result := TMyClass.MyClassFunction; Oh, that is so cool! I suppose that probably means that class methods can only reference class variables/methods

Re: [fpc-pascal] FPC class syntax was extended to support delphi code

2010-01-13 Thread Doug Chamberlin
Cox, Stuart TRAN:EX wrote: Some operations (procedures/functions) just go naturally with Classes but don't belong to any particular instance of that class. An example might be calculating the area of overlap between two geographic polygons (instances of the class) where the function returning

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-03 Thread Doug Chamberlin
Florian Klaempfl wrote: Doug Chamberlin schrieb: Anyone know how soon this will be incorporated into the tar file that is posted as the latest 2.4 download? Never. 2.4.0 is out and finished. OK. anyone know when this fix will be incorporated into the next tarball posted to be the latest

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-02 Thread Doug Chamberlin
Michael Van Canneyt wrote: On Sat, 2 Jan 2010, Juha Manninen wrote: I also looked at FPC page and wiki page and there are no instructions for installation! How is it possible? The only link for FPC installation is buried under Lazarus documentation (!) :

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-01 Thread Doug Chamberlin
Thanks for all the great work that has gone into 2.4.0! For my new year's resolution I'm going to commit to FPC and Lazarus. So, I'm installing the latest in a fresh Ubuntu 9.10 VM and diving in. I'll be pushing all this software hard and will probably be coming here for help. First problem:

Re: [fpc-pascal] Free Pascal 2.4.0 released

2010-01-01 Thread Doug Chamberlin
Sorry about all the cross posting. I didn't think such cross posting was typically used and didn't even think to check the reply-to addresses. Problem #2: I decided to make a contribution by adding a note to the installation docs about needing to install from a location without embedded

Re: [fpc-pascal] FPC on USB

2009-06-13 Thread Doug Chamberlin
Thomas Nelson wrote: Sorry the proper subject should have been FPC on USB I strongly suggest you look into storing a complete virtual machine on the USB storage. I know a few people who operate their VM's from USB devices and they are content with that arrangement. The advantage is that

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread Doug Chamberlin
fpcl...@silvermono.co.za wrote: Graeme Geldenhuys wrote: Can you please refrain from quoting the *whole* previous message... Okay. Point taken. Thank you, Nino! Everyone, please trim your quotes! ___ fpc-pascal maillist -

Re: [fpc-pascal] TProcess with festival

2009-05-15 Thread Doug Chamberlin
Looks to me like you are terminating the process as soon as you write to the pipe. Don't you have to give it time to breathe? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A complex trouble(at least for me)

2009-05-07 Thread Doug Chamberlin
Arí Ricardo Ody wrote: [snipped] I can't create StringList with a variable name. I must previously declare each one in my pascal source. How can I solve the trouble proposed? I don't understand this part of your message. Does this mean you think you cannot dynamically create TStringList

Re: [fpc-pascal] Greetings

2009-04-27 Thread Doug Chamberlin
Nino Luciani wrote: Hi guys, A quick introduction. I joined the FPC mailing lists yesterday. Hi, Nino! Welcome! Are you new to the Object Pascal world or have you been using the language for a while? Doug C. ___ fpc-pascal maillist -

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Doug Chamberlin
Graeme Geldenhuys wrote: http://www.jwz.org/ What a great idea! Made my day! ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] A real programmers website

2009-04-06 Thread Doug Chamberlin
Graeme Geldenhuys wrote: On Mon, Apr 6, 2009 at 4:54 PM, Oliver Leitner shadow...@gmail.com wrote: Oh man, finally a design that is impressing me=) :-) I must say, that is a very unique web page - I haven't see such a design yet. Yeah, I think I'll copy it before he gets it patented! :0

Re: [fpc-pascal] Constructors Destructors 101

2009-04-03 Thread Doug Chamberlin
Bart wrote: On 4/3/09, Jonas Maebe jonas.ma...@elis.ugent.be wrote: I think what is meant, is that if you create a direct subclass of TObject, there is no need to call TObject's create constructor (e.g., via inherited create;) from your own constructors. It doesn't hurt if you do it of course,

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Doug Chamberlin
Michael Van Canneyt wrote: What I want doesn't matter. Our clients want rich web 2.0 webapps. I just want to make them in pascal and keep the codebase and know-how I have in my team. If it was up to me, client/server would do the job just fine. But I cannot ask all parents of all pupils of