[fpc-pascal] Constants and proc types

August Oktobar augustoktobar at gmail.com
Fri Sep 27 20:13:28 CEST 2013


why I cannot compile this (FPC 2.7.1)

type
  tproc_type=procedure;

  procedure xxx;
  begin
  end;

   procedure yyy;
  begin
  end;

  const
    type_list:array [0..1]of tproc_type=(@xxx, at yyy);

   const
      one_type: tproc_type=type_list[0] ;   <------- illegal expression
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130927/27d962e0/attachment.html>


More information about the fpc-pascal mailing list