Re: [fpc-pascal] accessing files from a function

2011-05-15 Thread London Disney
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

Re: [fpc-pascal] accessing files from a function

2011-05-15 Thread Ralf A. Quint
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

Re: [fpc-pascal] JSON - RTTI streaming.

2011-05-15 Thread Burkhard Carstens
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

[fpc-pascal] accessing files from a function

2011-05-15 Thread John Lee
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

[fpc-pascal] Re: Oberon Day 2011, N. Wirt speaking!

2011-05-15 Thread leledumbo
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

[fpc-pascal] Re: generics question

2011-05-15 Thread leledumbo
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.