Re: [fpc-pascal]use of funct identifier in funct body

2003-09-03 Thread Peter Vreman
Consider two implementations of the same function: Implementation 1 (the old way): function num_listing (n : word) : ansistring; var i : word; num : string; result : ansistring; begin result := ''; for i := to n do begin str (n, num); result := result + num; end;

RE: [fpc-pascal]use of funct identifier in funct body

2003-09-03 Thread Peter Vreman
If i know good, the result variable exists in function without declare it. Use result instead function name. That is correct. But the result keyword is only supported in Delphi and ObjFpc modes ___ fpc-pascal maillist - [EMAIL PROTECTED]

[fpc-pascal]IPC Question

2003-09-03 Thread Michael Weinert
Hi all, I wrote 2 programs which are using the IPC queue. Now I have a problem, that often the the queue cannot be opened. I did some tests and cannot find out where the problem is. The relevant code is here: ipcqueue:='/var/ipc'; IPC_Key:=ftok(ipcqueue,'M'); // Eindeutigen

Re: [fpc-pascal]IPC Question

2003-09-03 Thread L D Blake
Hello, This is in reply to your letter of September 3, 2003 Hi all, I wrote 2 programs which are using the IPC queue. Now I have a problem, that often the the queue cannot be opened. I did some tests and cannot find out where the problem is. The relevant code is here: