G
Gerhard Hoffmann
Guest
Hi all,
I'm writing a test bed that reads lines from a stimulus file,
writes these lines to a log file, parses them for adresses,
data, expected exceptions etc.
Then the observations are added to the log.
The problem is, that writing the line to the log file consumes it.
Copying in the style
line2 := line1;
provides but a second pointer to the deallocated NOTHING.
Is there an easy way to clone a textio line including its contents?
Without memory leaks? Must be a standard task.
Probably I'm missing something obvious.
best regards, Gerhard
p.s.
It would be nice if WRITELINE had an optional parameter DESTRUCTIONLESS
that inhibits the deallocate.
I'm writing a test bed that reads lines from a stimulus file,
writes these lines to a log file, parses them for adresses,
data, expected exceptions etc.
Then the observations are added to the log.
The problem is, that writing the line to the log file consumes it.
Copying in the style
line2 := line1;
provides but a second pointer to the deallocated NOTHING.
Is there an easy way to clone a textio line including its contents?
Without memory leaks? Must be a standard task.
Probably I'm missing something obvious.
best regards, Gerhard
p.s.
It would be nice if WRITELINE had an optional parameter DESTRUCTIONLESS
that inhibits the deallocate.