Re: [fpc-pascal] Where is the best place to declare an array?

2010-05-07 Thread spir ☣
[OT -- not fpc-related -- just a side note] On Fri, 7 May 2010 00:34:11 +0200 Jonas Maebe jonas.ma...@elis.ugent.be wrote: in general my bias would be much more against than in favour of global variables from a speed perspective In _some_ dynamic languages using a virtual machine at least

Re: [fpc-pascal] standard unit description -- builtin funcs procs

2010-05-07 Thread Tomas Hajny
On Thu, May 6, 2010 13:03, Michael Van Canneyt wrote: On Thu, 6 May 2010, spir ☣ wrote: Hi, It seems, maybe, that most people using freepascal actually come from a different environment (esp Delphi) with all needed knowledge about (a dialect of) the language itself, here in fact Pascal

Re: [fpc-pascal] about dynamic array

2010-05-07 Thread spir ☣
On Fri, 7 May 2010 06:10:30 +0200 cobines cobi...@gmail.com wrote: 2010/5/6 spir ☣ denis.s...@gmail.com: (By the way, started playing with TFPList already, and could not find how to get data back! I mean the symtric of add(). Even tried indexing (who knows, with the syntactic magic of

Re: [fpc-pascal] about dynamic array

2010-05-07 Thread Michael Van Canneyt
On Fri, 7 May 2010, spir ☣ wrote: On Fri, 7 May 2010 06:10:30 +0200 cobines cobi...@gmail.com wrote: 2010/5/6 spir ☣ denis.s...@gmail.com: (By the way, started playing with TFPList already, and could not find how to get data back! I mean the symtric of add(). Even tried indexing (who

Re: [fpc-pascal] about dynamic array -- p

2010-05-07 Thread spir ☣
On Fri, 7 May 2010 06:10:30 +0200 cobines cobi...@gmail.com wrote: PS : I also need the pointer's mediation when a func/proc expects a (typed) element. Must rewrite the code to use an element pointer as parameter (and pass a pointer from the list). This is more annoying since it obscures the

Re: [fpc-pascal] standard unit description -- builtin funcs procs

2010-05-07 Thread spir ☣
On Fri, 7 May 2010 11:09:42 +0200 (CEST) Tomas Hajny xhaj...@hajny.biz wrote: http://www.freepascal.org/docs-html/user/userch9.html . . BTW, you may also want to have a look at http://wiki.freepascal.org/Unit_categorization - it's incomplete (some newer units are missing there), but

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-07 Thread Vinzent Höfler
Bihar Anwar bihar_an...@rocketmail.com Moreover, I've seen many Delphi code snippets out there (e.g. http://www.cs.wisc.edu/~rkennedy/array-delete) rely on reference counting behaviour. Great. I once wrote code that relied on Turbo Pascal's heap list structure internals. Shall I post a bug

Re: [fpc-pascal] about dynamic array

2010-05-07 Thread Frank Peelo
On 07/05/2010 10:29, spir ☣ wrote: On Fri, 7 May 2010 06:10:30 +0200 cobines cobi...@gmail.com wrote: 2010/5/6 spir ☣ denis.s...@gmail.com: (By the way, started playing with TFPList already, and could not find how to get data back! I mean the symtric of add(). Even tried indexing (who

Re: [fpc-pascal] about dynamic array

2010-05-07 Thread cobines
2010/5/7 spir ☣ denis.s...@gmail.com: I cannot directly fish and use the pointer's target. Seems I always need to pass _via_ the pointer, then all is fine. It's not really annoying. But I don't understand the difference: in code, both versions are indeed strictly equivalent. I guess there's

Re: [fpc-pascal] standard unit description -- builtin funcs procs

2010-05-07 Thread Tomas Hajny
On Fri, May 7, 2010 11:55, spir ☣ wrote: On Fri, 7 May 2010 11:09:42 +0200 (CEST) Tomas Hajny xhaj...@hajny.biz wrote: http://www.freepascal.org/docs-html/user/userch9.html . . BTW, you may also want to have a look at http://wiki.freepascal.org/Unit_categorization - it's incomplete