Re: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread Roger Bailey
On Sep 2010, at 20:32, José Mejuto wrote: [ some stuff about recursion - at the bottom if you want to read it ] This a misunderstanding of way recursion can be flattened into a loop. It's especially not useful because the transformed version still uses a stack, so it doesn't execute in

[fpc-pascal] What do these errors mean?

2010-06-26 Thread Roger Bailey
Following a clean compile (Under XCode) I get: _main, referenced from: start in crt1.10.6.o [ several dozen similar messages relating to user-defined routines snipped ] fpc_shortstr_to_shortstr, referenced from: [ snip ] ld: symbol(s) not found collect2: ld returned 1 exit

[fpc-pascal] Re: fpc-pascal Digest, Vol 72, Issue 35

2010-06-14 Thread Roger Bailey
an actual parameter list for a syntactically correct function call. The call should be excecuted except in one case (LRG page 96) ... the compiler will not execute the function call ... when assigning a value to a procedural type variable. This is clearly not such a case. Roger Bailey P.S

[fpc-pascal] Re: Bug?

2010-06-14 Thread Roger Bailey
Sorry, I committed the cardinal sin of getting the subject line wrong. Corrected now :-) On 14 Jun 2010, at 18:07, Michael Van Canneyt wrote: On Mon, 14 Jun 2010, Roger Bailey wrote: On 12 Jun 2010, at 11:00, Michael Van Canneyt wrote: TestFunction := ActualParameter ( ) ; { compiles

[fpc-pascal] Bug?

2010-06-11 Thread Roger Bailey
Can someone explain this? program WhatsGoingOnHere ; type FunctionType = function : INTEGER ; function NamedFunction : INTEGER ; begin NamedFunction := 12345 ; end ; function TestFunction ( ActualParameter : FunctionType ) : INTEGER ; begin TestFunction :=

[fpc-pascal] Re: fpc-pascal Digest, Vol 71, Issue 69

2010-05-28 Thread Roger Bailey
OK, I give up. How do you handle standard input and output files in FPC? When I write something like: nextcharacter := input^ I get error: 1: Illegal qualifier. Does FPC not support this standard Pascal feature? The documentation is extremely unhelpful in this area. The LRG just says

[fpc-pascal] Re: ISO Standard Pascal I/O

2010-05-28 Thread Roger Bailey
Me: ... nextcharacter := input^ ... Does FPC not support this standard Pascal feature? Jonas: No, it does not. FPC mainly supports Borland-style Pascal dialects, and they are not ISO Standard/Extended Pascal compliant. I can live with that, but it would save newcomers a lot of trouble

[fpc-pascal] One small step for Pascalkind ...

2010-04-19 Thread Roger Bailey
... one big step for me. Dear FP Seers -- I'm struggling to port a heap of software written in Think Pascal to Mac OS X, and I'm finding the learning curve for Unix and Xcode extremely steep, with huge quantities of impenetrable documentation for both. I'm sorry to say that some of the FPC