[fpc-pascal] Installing fpc 2.5.1 from svn

2011-02-03 Thread Rogério Martins
Hi ! How can i download and install fpc 2.5.1 from svn in my ubuntu 10.04 x86_64 ? Thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Correct use of var in function calls?

2011-02-03 Thread Bo Berglund
I am a bit confused over the way to specify parameters to function calls as var or not I have the following constructs: type TByteArr = array of byte; I have a buffer class that receives data from a serial port and now I want to extract data from this buffer to various types of variables i

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-03 Thread Jonas Maebe
On 02 Feb 2011, at 17:26, Amit Bueno wrote: > Seems that I found a workaround. > When calling the NewSubChunk in the following syntax: > SubChunks[NewSubChunk]^.read(fl); /// raise an exception. > > While > MyIndex := NewSubChunk; > SubChunks[MyIndex]^.read(fl); /// raise an exception. > >

Re: [fpc-pascal] Re: New multicast event implementation

2011-02-03 Thread Sven Barth
Am 02.02.2011 15:40, schrieb Anthony Walter: By the way, does Free Pascal generic support generic constraints yet? Also, this format seems more natural to me: They aren't implemented currently, but I hope they will at some time. TCollection = class property Count: Integer; property Ite

Re: [fpc-pascal] dynamic array and new/dispose

2011-02-03 Thread Jonas Maebe
On 02 Feb 2011, at 14:28, Jonas Maebe wrote: On 02 Feb 2011, at 14:10, Amit Bueno wrote: Have you got the prof.rar? No. I've just looked at the posts held for moderation and your mail is over 5MB. That is way too large to send to a mailing list. I just saw the new message in the moderat

Re: [fpc-pascal] Re: New multicast event implementation

2011-02-03 Thread Anthony Walter
Have you used List, Dictionary, or IEnumerable in C# much? How about EventHandler? They are pretty useful. Even in Delphi, TList, TObjectList, and TCompare are more than handy IMO. No longer do I have to write "TMyObject(FList[I])" all over the place. When using "if FList.IndexOf(Pointer(FInstance

Re: [fpc-pascal] Memory leak or object destruction?

2011-02-03 Thread Andreas Schneider
On Wed, 2 Feb 2011 21:09:42 -0800, Andrew Hall wrote: Interfaces support reference counting. Only COM interfaces, but they are currently the default anyway. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailma