Results 1 to 4 of 4

Thread: Interface <> Implementation

  1. #1

    Interface <> Implementation

    Code:
    interface
    
    type
      TForm2 = class(TForm)
        procedure Shaders(var aShaderProgram: glUInt);
    ...
    
    implementation
    
    procedure TForm2.Shaders;
    How come it is possible that I can compile and run this?

  2. #2
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    243
    Afaik, tp, delphi and fpc in delphi mode allow to not have to specify the parameters again in the implementation section. That is, if there is only one method of that name. If you have multiple overloaded methods of the same name then it won't compile.
    In defeat we learn.

  3. #3

  4. #4
    I also didn't knew that and I have been using Delphi for over 10 years now.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comodo SSL