Re: [fpc-devel] property cam access private symbol from class in other unit

2012-01-04 Thread Pete Cervasio
On Wednesday, January 04, 2012 01:26:52 pm Martin wrote: TForm1 = class(TForm) public FFoo: TFoo; property Num: Integer read FFoo.FBar; end; Just a 'for your info' note: Kylix doesn't allow the above. Nor does it allow accessing the property FFoo.Bar as a parameter to

Re: [fpc-devel] Problem with Now() and time changed by ntpd

2011-11-03 Thread Pete Cervasio
On Thursday, November 03, 2011 11:03:36 am Hans-Peter Diettrich wrote: Sven Barth schrieb: And functions like DateTimeToStr don't care whether a time value is local or UTC and in my opinion they even MUST NOT. Splitting the TDateTime into year, month etc. is done by a DecodeDate...

Re: [fpc-devel] Problem with Now() and time changed by ntpd

2011-11-03 Thread Pete Cervasio
On Thursday, November 03, 2011 03:11:37 pm Hans-Peter Diettrich wrote: Pete Cervasio schrieb: Splitting the TDateTime into year, month etc. is done by a DecodeDate... function, that *assumes* that TDateTime contains a local time. When you feed it an UTC time

Re: [fpc-devel] IO checks across packages

2011-07-25 Thread Pete Cervasio
On Monday 25 July 2011 08:07:22 Martin wrote: The following demo project enables and disables IO checks to simulate the situation. program Project1; {$mode objfpc}{$H+} begin {$I+} writeln('1'); {$I-} chdir('c:\IDoNotExist'); You have to check IOResult at this point,

Re: [fpc-devel] Semicolon before else

2010-01-29 Thread Pete Cervasio
On Friday 29 January 2010 01:52:59 Juha Manninen wrote: For Graeme and others: the problem is not the amount of typing. The problem is that you can easily forget this semicolon It's not like you have to drop off your punch cards and come back tomorrow afternoon, is it? I usually don't even

Re: [fpc-devel] Re: makeskel fails to parse file

2006-09-14 Thread Pete Cervasio
On Thursday 14 September 2006 07:06, Graeme Geldenhuys wrote: Still not sure what in the IFDEF LINUX caused the problem though... Does makeskel and FPC support the If Declared(...) syntax? This might not be a big help with your specific problem, but the set if IFDEFs doesn't quite work the

Re: [fpc-devel] Re: makeskel fails to parse file

2006-09-14 Thread Pete Cervasio
On Thursday 14 September 2006 09:18, Graeme Geldenhuys wrote: I haven't used Kylix 3 Pro for over a year. I had my copy of Kylix fully patched - not sure if that made a difference. The IFDEF's did work at that stage though. Strange I guess, seeing that yours doesn't. Yeah, that's definitely

[fpc-devel] resolve.pp in ver 2.0.4 (and a fix)

2006-08-31 Thread Pete Cervasio
Greetings. I had been using version 2.0.2 (under Linux, if it matters) and noticed a problem with the THostResolver component. It was giving incorrect (reversed) addresses for anything that had to come from DNS. Entries out of /etc/hosts would work fine, though. After fixing the problem