Number: 13 Category: gpc Synopsis: Exporting timestamp - Timestamp record parameter required Confidential: no Severity: serious Priority: medium Responsible: peter (Peter Gerwinski) State: open Class: sw-bug Submitter-Id: www Arrival-Date: Sun Dec 15 17:50:00 1996 Originator: Sven Engelhardt Organization: SIK Dresden Release: 2.0-linux-i486-elf Environment: Linux 2.0.27 Description: Any kind of timestamp-variable/-parameter can't be exported from a unit. Compiler always gives a message:
"Timestamp record parameter required"
How-To-Repeat: unit t1;
interface var t:timestamp; implementation end. {--------------------------------------------} program t2(input,output); uses t1; begin writeln(date(t)); end.
Fix: workaraound:
define a new timestamp-type eg. ttimestamp, then define new functions bug_date, bug_time, bug_gettimestamp using an absolute variable conversion eg. type ttimestamp=timestamp; function bug_date(tt:ttimestamp):TString; var t:timestamp absolute tt; begin bug_date:=date(t); end;
Audit-Trail: Unformatted: