Op 2010-07-28 19:41, Michael Van Canneyt het geskryf:
It is expected behaviour. Procedure of object only works with classes,
and only with real methods, not with class methods.
Then should the procedure of object syntax change to become procedure of
class - to be less ambiguous? :)
Hello FPC-Pascal,
Two simple questions.
1) Is there any way in Pascal to write something like this
(pseudocode):
With Result:=Object.Create() do begin
Free;
end;
Which will be written without the with as:
Result:=Object.Create();
Result.Free;
2) Which is the expected way to detect if a
On 29 Jul 2010, at 20:31, José Mejuto wrote:
1) Is there any way in Pascal to write something like this
(pseudocode):
With Result:=Object.Create() do begin
Free;
end;
Just leave out the Result:= part and it will compile/work fine..
2) Which is the expected way to detect if a float
Hello FPC-Pascal,
Thursday, July 29, 2010, 8:54:44 PM, you wrote:
1) Is there any way in Pascal to write something like this
(pseudocode):
With Result:=Object.Create() do begin
Free;
end;
JM Just leave out the Result:= part and it will compile/work fine..
I was looking for a with like: