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;
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]
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
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: