Re: [fpc-pascal] aterm won't run fp

2006-05-02 Thread John Coppens
On Tue, 25 Apr 2006 08:52:05 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > Can anyone tell me what's missing to get aterm to run fp? > > Implementation of the Xterm terminal standard ? :) > > Debugging startup (possibly using a simpler example like installer > first), is the onl

Re: [fpc-pascal] eof strangeness

2006-05-02 Thread John Coppens
On Tue, 02 May 2006 14:42:00 -0400 Bob Richards <[EMAIL PROTECTED]> wrote: > John Coppens wrote: > > > program testeof; > > > > begin > > if eof then > > writeln('EOF found') > > else > > writeln('No EOF found'); > > end. > > > > This sample program doesn't return till is pressed.

[fpc-pascal] string comparison on various platforms

2006-05-02 Thread Marc Santhoff
Hi, from digging the sources I know, that on Unix-like Systems the comparison of strings is done according to the current locale (Pascals "strcomp" is mapped to C-libs "strcoll"). Can I assume that this is done similar on all other platforms, too? I'm asking myself if I have to consider somethin

Re: [fpc-pascal] eof strangeness

2006-05-02 Thread Bob Richards
John Coppens wrote: > program testeof; > > begin > if eof then > writeln('EOF found') > else > writeln('No EOF found'); > end. > > This sample program doesn't return till is pressed. That's correct and reasonable. You are terminating your program after an EOL (ENTER), If you send

[fpc-pascal] sort procedure of T(FP)List

2006-05-02 Thread Marc Santhoff
Hi, i wonder why the declaration of the comparing function of list objects is the way it is: TListSortCompare = function (Item1, Item2: Pointer): Integer; Since I am writing a class that sorts a list it owns depending on another property naming the property of the list items for sorting, I would

Re: [fpc-pascal] const parameter writeable

2006-05-02 Thread L505
> > > > > > But in this case I'm wondering why you want to give a pointer instead > > > of the real type? > > > > > > did you mean this ? : > > > >procedure ChangeRec1(const Rec: TSomeRec); > >begin > > Rec.a:= 'string A'; > >end; > > Yes. Well, this is a Precord. That doesn't wor