[fpc-pascal] Initializing Arrays?

2008-12-24 Thread Joseph Montanez
I've already read that its not built into pascal but how do I get around this? If I have: contacts : array [1 .. 256] of JSMContact; the only way to initialize it is? with contacts[1] do begin Name := ''; PhoneNo := ''; end; Also if I am passing a var to a procedure

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Jonas Maebe
On 25 Dec 2008, at 00:28, S. Fisher wrote: I wish that people would stop getting so derogatory and fired up about mundane things like whether or not someone else likes a particular programming language (and that goes for both sides of the "debate"). And that they'd stop over-generalisin

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread S. Fisher
Anyone who pretends to know how to use computers effectively must know how to use grep. (grep is available for Windoze.) Let's say that you want to search all of the files in the current directory for lines that contain "foobar" or "foo bar" or "foo-bar", followed later in the line by "practise"

Re: [fpc-pascal] Dynlibs.LoadLibrary on 64bit Debian (Ubuntu)

2008-12-24 Thread Jonas Maebe
On 24 Dec 2008, at 20:42, Andrew Brunner wrote: So what's with Dynlibs or Linux for that matter, not able to load libraries from sub folders inside mounts? Is *this a known issue? No, but "sub folders inside mounts" has no meaning under unix (every folder on your disk is a "sub folder insi

Re: [fpc-pascal] Dynlibs.LoadLibrary on 64bit Debian (Ubuntu)

2008-12-24 Thread Andrew Brunner
I've been struggling with an issue of Dynlibs.LoadLibrary(completepath/something.so) always returning zero for libraries in subfolders that are traced back to samba shares. Example Library Project is built on /home/atbrunner/Source/Libraries/Test/project1.so but /home/atbrunner/Source is a smbfs

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > Frank de Groot (Rent-a-Geek) wrote: > > > 1. The number of people proficient in RegExes is very small, and it > > takes regular practice to keep the skill up. > > Very bad to be dependent on such a subset of Pascal programmers. > > I am very sor

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > > Maybe. I never used them (except a text editor of course). Everything > > you can do with these tools is also possible with a good Pascal compiler > > (and much more). > > Very true, I'd not deny that for a moment. However what's better: a >

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Frank de Groot (Rent-a-Geek)
4. RegExes, especially complex ones, are usually orders of magnitude slower than straight Pascal, because they're usually interpreted at runtime by a parser. They could possibly be preprocessed if assigned to a constant, although I've not tried doing this. If you modify the RegExp-parsing so

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Mark Morgan Lloyd
Frank de Groot (Rent-a-Geek) wrote: 1. The number of people proficient in RegExes is very small, and it takes regular practice to keep the skill up. Very bad to be dependent on such a subset of Pascal programmers. I am very sorry, but your logic is bad there. A high proportion of unix users

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread ik
http://ik.homelinux.org/ On Wed, Dec 24, 2008 at 12:56 PM, Jürgen Hestermann < juergen.hesterm...@gmx.de> wrote: > To use grep, sed, awk, or a text editor effectively, one must >> understand regular expressions. >> > > Maybe. I never used them (except a text editor of course). Everything you > c

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Frank de Groot (Rent-a-Geek)
I agree with Jürgen. It's is much more preferable to write standard Pascal, for many reasons: 1. The number of people proficient in RegExes is very small, and it takes regular practice to keep the skill up. Very bad to be dependent on such a subset of Pascal programmers. 2. RegExes are notori

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Mark Morgan Lloyd
Jürgen Hestermann wrote: To use grep, sed, awk, or a text editor effectively, one must understand regular expressions. Maybe. I never used them (except a text editor of course). Everything you can do with these tools is also possible with a good Pascal compiler (and much more). Very true,

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Jürgen Hestermann
To use grep, sed, awk, or a text editor effectively, one must understand regular expressions. Maybe. I never used them (except a text editor of course). Everything you can do with these tools is also possible with a good Pascal compiler (and much more). So why waste time on learning another

Re: [fpc-pascal] installing lazarus from debian backports - Broken package

2008-12-24 Thread Mark Morgan Lloyd
Csanyi Pal wrote: apt-cache show nothing about libglib1.2ldbl Google brings up lots of relevant discussion. I normally compile Lazarus from scratch under Debian and have never seen this problem. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not t

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread Mark Morgan Lloyd
Mattias Gaertner wrote: see also http://wiki.lazarus.freepascal.org/IDE_regular_expressions Also http://regexpstudio.com/TRegExpr/Help/regexp_syntax.html which is the one I use with Delphi, not sure whether it's related to the one that FPC bundles. I think I could have used a better exampl

Re: [fpc-pascal] My favourite missing feature

2008-12-24 Thread S. Fisher
--- On Mon, 12/22/08, Mark Morgan Lloyd wrote: > > There's been a recent thread in fpc-other on second > languages, but it appeared to focus more on what was a > useful part of a developer's skillset rather than what > people miss from Pascal. > > What /I/ miss is Perl's pattern matching, and

Re: [fpc-pascal] Options for configuring GDB

2008-12-24 Thread Florian Klaempfl
leledumbo schrieb: I'm curious why my FPIDE with GDB 6.8 compiled with MinGW crashes while GDB says OK (see http://bugs.freepascal.org/view.php?id=11968 http://bugs.freepascal.org/view.php?id=11968 ). Perhaps I didn't build GDB correctly, so may I know what options do you supply when calling con