I get the error “Error 1(E4) "end." or implementation section members (types or methods) expected.“
Nowhere on the internet I can find information about this error.
I get this error because of this line of the AssemblyInfo.pas file:
Implementation
SomeMethod();
end.
I work in Delphi Prism.
That’s not valid inside
implementation.The Pascal (which Delphi Prism is based loosely on) unit consists of a couple of sections. The
interfacesection provides the same functionality as the C/C++ header file; it exposes the public content to users of the code unit.The
implementationis like the C/C++ source file that the header exposes. It’s where you actually implement the content theinterfaceunit made available. Therefore, it should contain the actual code for the methods and functions.A quick example (Delphi code, but is pretty similar):