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
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
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
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
Can someone explain this?
program WhatsGoingOnHere ;
type
FunctionType = function : INTEGER ;
function NamedFunction : INTEGER ;
begin
NamedFunction := 12345 ;
end ;
function TestFunction ( ActualParameter : FunctionType ) : INTEGER ;
begin
TestFunction :=
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
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
... 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