Recent

Author Topic: ISO 7185 mode, automatically associate header files  (Read 5733 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: ISO 7185 mode, automatically associate header files
« Reply #15 on: December 28, 2017, 05:27:59 pm »
While on the subject, I quickly browsed the standard on your site, and wondered if this should compile with level 0.

Code: Pascal  [Select][+][-]
  1. procedure print_scores(players : array[1..2] of sometype);
  2. begin
  3. end;

In the standard I only see type declaration, and it doesn't seem to differentiate between complex (aggregate) and simple types like Borland does. Should this compile IYHO?

FPC stumbles on it

samiam95124

  • New Member
  • *
  • Posts: 12
Re: ISO 7185 mode, automatically associate header files
« Reply #16 on: December 28, 2017, 09:23:55 pm »
Marcov,

I believe it should not, with level 0.  It might compile at level 1, because that does allow array references within the procedure parameter header. In level 0, procedure parameters are type identified by a type label (id) only.

I should stipulate that I am not an expert on ISO 7185 level 1. I have never used it nor implemented it. Pascal-P5 is only level 0 compliant, and I don't plan on implementing level 1.

 

TinyPortal © 2005-2018