Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-09

Constants and proc types

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

August Oktobar

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,@yyy);
   const
      one_type: tproc_type=type_list[0] ;   <------- illegal expression

Reply by email