well why not make it a global variable in that unit's implementation?
implementation
var
f:text
.
then have a separate function to close the file.
On 16 May 2011, at 01:28, John Lee wrote:
> I'd like to put the assign and reset of a text file into a function, and then
> use the
At 05:28 PM 5/15/2011, John Lee wrote:
I'd like to put the assign and reset of a text file into a function,
and then use the function to return a line from the file, without
needing to close the file then re assign and reset every time (for
performance reasons) - see below for my attempt.
Th
Am Donnerstag, 6. Januar 2011 00:12 schrieb Michael Van Canneyt:
> Hello,
>
> For those of you that need JSON support:
>
> I have committed support for streaming published properties
> (properties for which RTTI is generated) from objects to
> JSON and vice versa, in a unit fpjsonrtti.
>
> Not the
I'd like to put the assign and reset of a text file into a function, and
then use the function to return a line from the file, without needing to
close the file then re assign and reset every time (for performance
reasons) - see below for my attempt.
This doesn't work because I guess the file han
if only I could be there...
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/Oberon-Day-2011-N-Wirt-speaking-tp4393811p4397752.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal m
My guess is that because there's only one Blah, it would be OK. Now try
specializing TTestGen with String.
--
View this message in context:
http://free-pascal-general.1045716.n5.nabble.com/generics-question-tp4389896p4397750.html
Sent from the Free Pascal - General mailing list archive at Nabble.