tb0143.pp 356 B

123456789101112131415
  1. { Old file: tbs0171.pp }
  2. { missing typecasting in constant expression solved for pointers OK 0.99.11 (PM) }
  3. type
  4. pstring=^string;
  5. const
  6. drivestr:string='c:';
  7. pdrivestr:pstring=pstring(@drivestr);
  8. begin
  9. if pdrivestr^<>'c:' then
  10. begin
  11. Writeln('Error in typecast of const');
  12. Halt(1);
  13. end;
  14. end.