[fpc-pascal] Re: How choose units names?

2010-07-21 Thread Guillermo Martínez Jiménez
> Date: Wed, 21 Jul 2010 16:55:14 -0300 > From: Marcos Douglas > > How you have no conflict with names of the units? Do you use some > prefix in your units as "uwebutils.pp", "mywebutils.pp", > "xyzWebUtils.pp", etc. I do use descriptive names, of course. I also use a "Unit" or "U" prefix; i. e.:

Re: [fpc-pascal] How to set a CORBA interface property (tkInterfaceRaw) through RTTI

2010-07-21 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara escreveu: Hi, I've managed to set a COM interface property (tkInterface) through RTTI using SetInterfaceProp. But i could not find a way to set a CORBA interface property (tkInterfaceRaw) since SetInterfaceProp expects IUnknown. In the attached example, when i t

Re: [fpc-pascal] How choose units names?

2010-07-21 Thread Marc Weustink
Marcos Douglas wrote: How choose units names? How you have no conflict with names of the units? Do you use some prefix in your units as "uwebutils.pp", "mywebutils.pp", "xyzWebUtils.pp", etc. I used to prefix my units and classes with MW. At my job all internal library units start with CC (abb

Re: [fpc-pascal] How choose units names?

2010-07-21 Thread Marcos Douglas
On Wed, Jul 21, 2010 at 4:58 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> >> How you have no conflict with names of the units? Do you use some >> prefix in your units as "uwebutils.pp", "mywebutils.pp", >> "xyzWebUtils.pp", etc. > > Just take unique ones. There

Re: [fpc-pascal] questions mark linux and windows

2010-07-21 Thread Jonas Maebe
On 21 Jul 2010, at 20:47, Luis Fernando Del Aguila Mejía wrote: > I wrote this program. > > var c,d: char; > Begin > c:=#$00B1; > Writeln(byte(c)); > Writeln(c); > > d:=#$0080; > Writeln(byte(d)); > Writeln(d); > End. > > When I compile on Linux, the variable "c" stores the value #$B1, and the

Re: [fpc-pascal] How choose units names?

2010-07-21 Thread Marco van de Voort
In our previous episode, Marcos Douglas said: > > How you have no conflict with names of the units? Do you use some > prefix in your units as "uwebutils.pp", "mywebutils.pp", > "xyzWebUtils.pp", etc. Just take unique ones. There are 3 words in avg use in the avg language, so if you just take

[fpc-pascal] [OFF TOPIC] How choose units names?

2010-07-21 Thread Marcos Douglas
On Wed, Jul 21, 2010 at 4:55 PM, Marcos Douglas wrote: > How choose units names? > > I was thinking what are the best names to my units to not to conflict > with the units of the FPC, Lazarus, and others frameworks or libs. > e.g. fpc\2.5.1\packages\fcl-web\src\base\webutil.pp > > There are a grea

[fpc-pascal] How choose units names?

2010-07-21 Thread Marcos Douglas
How choose units names? I was thinking what are the best names to my units to not to conflict with the units of the FPC, Lazarus, and others frameworks or libs. e.g. fpc\2.5.1\packages\fcl-web\src\base\webutil.pp There are a great chance this unit name exists in some libs or frameworks, on the we

[fpc-pascal] questions mark linux and windows

2010-07-21 Thread Luis Fernando Del Aguila Mejía
I wrote this program. var c,d: char; Begin c:=#$00B1; Writeln(byte(c)); Writeln(c); d:=#$0080; Writeln(byte(d)); Writeln(d); End. When I compile on Linux, the variable "c" stores the value #$B1, and the variable "d" stores the value #$80. But when I compile the program in Windows, "c" st

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Michael Van Canneyt
On Wed, 21 Jul 2010, Inoussa OUEDRAOGO wrote: 2010/7/21 Eduardo : On Tue, 20 Jul 2010 10:21:01 + Mark Morgan Lloyd wrote: Reimar Grabowski wrote: On Mon, 19 Jul 2010 17:13:15 +0200 Eduardo wrote: I'm developing an app and need to extend its functionality via external modules or plu

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Inoussa OUEDRAOGO
2010/7/21 Eduardo : > On Tue, 20 Jul 2010 10:21:01 + > Mark Morgan Lloyd wrote: > >> Reimar Grabowski wrote: >> > On Mon, 19 Jul 2010 17:13:15 +0200 >> > Eduardo wrote: >> > >> >> I'm developing an app and need to extend its functionality via >> >> external modules or plugins. Currently i'm t

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Mark Morgan Lloyd
Eduardo wrote: I was thinking about it, passing data and parameter types to generic modules. a) I can force to have all modules the same input/output entry point parameters. b) I can force to register the entry point parameters from data pool (which data the module need from all data the app h

Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Eduardo
On Tue, 20 Jul 2010 10:21:01 + Mark Morgan Lloyd wrote: > Reimar Grabowski wrote: > > On Mon, 19 Jul 2010 17:13:15 +0200 > > Eduardo wrote: > > > >> I'm developing an app and need to extend its functionality via > >> external modules or plugins. Currently i'm trying to do it using > >> dll/

Re: [fpc-pascal] Extending an enumeration

2010-07-21 Thread Mark Morgan Lloyd
Thierry Coq wrote: On 18/07/2010 20:56, Mark Morgan Lloyd wrote: ... Yes, I was thinking that. However if the basic class was say a round-robin scheduler with phases rrQuiescent and rrInitialised and the descendant was say an HP comms protocol handler with additional phases hpReceivingPadding,