Jump to content
Stefan Glienke

Bug: anonymous methods in procedure list

Recommended Posts

Anonymous methods normally don't appear in the procedure list (which I don't mind - so even if you decide to list them in the future, please make that optional).

However when you have a function/procedure does not have any arguments and you don't write () they appear in the list:

 

procedure Main;
var
  f: TFunc<Integer>;
  p: TProc;
  f2: TFunc<Integer,Integer>;
  p2: TProc<Integer>;
begin
  f := function: Integer begin end; // appears as empty entry in procedure list
  f := function(): Integer begin end; // does not appear

  p := procedure begin end; // appears as "begin end" in procedure list
  p := procedure() begin end; // does not appear

  p2 := procedure(x: Integer) begin end; // does not appear

  f2 := function(x: Integer): Integer begin end; // does not appear
end;


 

Share this post


Link to post

Shouldn't that better go into QP then or did you just miss to mention the report number?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×