Re: [fpc-pascal] FPC and IPv6, and BSD

2012-07-27 Thread Mark Morgan Lloyd
ZAN DoYe wrote: On 2012-07-23 21:51, Mark Morgan Lloyd wrote: I'm trying to write a simple finger daemon, capable of both IP4 and IP6. At present it's using an unprivileged socket so as to avoid problems on unix platforms. I appear to be having problems at the bind() call for IP6 (returns

[fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread leledumbo
try this: type TMyTemplate = class(TFPTemplate) private procedure ReplaceMyTags(Sender : TObject; Const TagString : String; TagParams:TStringList; Out ReplaceText : String); public constructor Create; end; procedure TMyTemplate.ReplaceMyTags(Sender : TObject; Const TagString :

[fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread leledumbo
Hey, that's nice, Michael. I never think of using TTemplateParser directly as I thought it was meant to be used internally by TFPTemplate only. Now I see that it actually has more features through OO approach instead of event driven. -- View this message in context:

Re: [fpc-pascal] Re: Generating templates with FPTemplate

2012-07-27 Thread Luciano de Souza
On 27/7/2012 08:51, leledumbo wrote: try this: type TMyTemplate = class(TFPTemplate) private procedure ReplaceMyTags(Sender : TObject; Const TagString : String; TagParams:TStringList; Out ReplaceText : String); public constructor Create; end; procedure

Re: [fpc-pascal] Generating templates with FPTemplate

2012-07-27 Thread Luciano de Souza
Michael, Your example is very clear. I am not very good to understand source codes. But this style seems to be very good and logical. It's really wonderful: FPC owns units for everything! Thank you. On 27/7/2012 08:43, michael.vancann...@wisa.be wrote: On Fri, 27 Jul 2012, luciano de souza

Re: [fpc-pascal] Generating templates with FPTemplate

2012-07-27 Thread michael . vancanneyt
On Fri, 27 Jul 2012, Luciano de Souza wrote: Michael, Your example is very clear. I am not very good to understand source codes. But this style seems to be very good and logical. It's really wonderful: FPC owns units for everything! Well, I use FPC for everything. So, I need tools for

[fpc-pascal] Getting UTC time etc.

2012-07-27 Thread Mark Morgan Lloyd
I know that this was discussed a couple of months ago, but I had difficulty working out what the consensus was. i) Is there an FPC function which will get the raw time from the RTC, which on unix systems will usually be UTC (specifically, without a DST correction)? ii) Are there functions

[fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Dimitrios Chr. Ioannidis
Hi all, first let me express my apologies for the off topic question. I'm having trouble to choose the correct gpl lisence for a new open source project that i'm starting. I want the project to be open source gpl'ed so it can be accepted in distro's like Debian. But, at the same time,

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Daniel Gaspary
On Fri, Jul 27, 2012 at 5:39 PM, Dimitrios Chr. Ioannidis d.ioanni...@nephelae.eu wrote: Hi all, first let me express my apologies for the off topic question. I'm having trouble to choose the correct gpl lisence for a new open source project that i'm starting. I want the project to be

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Mark Morgan Lloyd
Dimitrios Chr. Ioannidis wrote: Hi all, first let me express my apologies for the off topic question. I'm having trouble to choose the correct gpl lisence for a new open source project that i'm starting. I want the project to be open source gpl'ed so it can be accepted in distro's like

Re: [fpc-pascal] [OT] GPL Lisence help

2012-07-27 Thread Jorge Aldo G. de F. Junior
Do dynamic linked executables really need to not be GPL ? I mean, application subdivision in modules has nothing to not be accepted at courts as a valid concept. Your module/lib is GPL but code linked to it must not be and this is not a violation of GPL. Provided that the code to your module/lib