Hi,

I looked at http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl-db/tests/testfieldtypes.pas?r1=13971&r2=13970 and did not understand the meaning of:
@ASQLQuery.ExecSQL;

To me it seems just a address of a method, not a statement that the compiler can execute. But the compiler doesn't give an error message.

Also attached sample program compiles without error. Why is there no error on 
the line:
  @C.Test;

Vincent
program project1;

{$mode objfpc}{$H+}{$X-}

uses
  Classes;

type

  { TMyObject }

  TMyObject = class
  private
    procedure Test;
  end;

{ TMyObject }

procedure TMyObject.Test;
begin

end;

var
  c: TMyObject;
  p: pointer;


begin
  c := TMyObject.Create;
  @C.Test;
  C.Test;
end.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to