<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 08.05.2013 11:40, schrieb Darius
      Blaszyk:<br>
    </div>
    <blockquote
      cite="mid:f0e4f57d1c3b9574abc362bdf08f6b4c@zeelandnet.nl"
      type="cite">
      <div>
        <blockquote type="cite" style="padding-left:5px;
          border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
          <pre>Am 08.05.2013 11:20, schrieb Darius Blaszyk:</pre>
          <blockquote type="cite" style="padding-left:5px;
            border-left:#1010ff 2px solid; margin-left:5px">I'm working
            on a glut app but I keep on getting the message: Error:
            Can't assign local procedure/function to procedure variable
            The error is at this line: glutDisplayFunc(@redrawfunc); And
            the callback (which is declared in the same .inc file) is
            declared as: procedure redrawfunc; cdecl; I must be
            overlooking something obvious but I just don't see what. Any
            ideas?</blockquote>
          <pre>Is the "redrawfunc" a nested function/procedure?
Is the include file maybe included in such a way that the compiler 
treats its code as a nested function/procedure?
</pre>
        </blockquote>
        <p>No it's not nested. I have a .pas file with an interface
          section, next a couple of .inc files fill in the
          implementation section. Maybe the compiler is confused from
          that?</p>
      </div>
    </blockquote>
    Normally this should not be the case (except there is a bug). Maybe
    you forgot a "end;" or "begin" somewhere and now the compiler treats
    it as a nested procedure. Try to minimize your program as good as
    possible so that you should find the spot which triggers this.<br>
    <br>
    Regards,<br>
    Sven<br>
  </body>
</html>