[fpc-pascal] OLE & COM Support

2011-04-29 Thread Lee Jenkins


Hey guys,

How is the COM support in FPC nowadays?  I have a project coming up that I may 
use FPC for.


--
Warm Regards,

Lee

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Readline substitute

2011-04-29 Thread Johann Glaser
Hi!

I want to equip a program with a command line and therefore want a
powerful and user-friendly input prompt. Currently I use
  ReadLn(CmdLine);
which is not as user-friendly as desired. :-)

The usual answer for this question is libreadline. I already worked with
it (in plain C) but before I do a header translation for FreePascal I
wanted to ask you for your opinion if there is a better alternative or
anybody already has a header translation or even programmer-friendly
wrapper for the history and auto-completion stuff.

Thanks
  Hansi


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Generics feature status

2011-04-29 Thread leledumbo
I see now that generics have improved a lot since latest release, we even
have Delphi compatible syntax in Delphi mode. Recursive generic type is
supported as well now (finally, I can continue my data structure library
:)). Seeing these facts, what's the status of this feature now? Is it
considered stable?--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Generics-feature-status-tp4359580p4359580.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Generics feature status

2011-04-29 Thread Anthony Walter
Is this true? I'd really like to see generics that with a mode where it is
possible to say with the following syntax (compatible with Delphi):

type
  IDelegate = interface
procedure Add(const Handler: T);
procedure Remove(const Handler: T);
  end;

And then specialize using the following syntax:

type
  INotifyDelegate = IDelegate;

Also, generic constraints are needed:

type
  TComponentTool = class(TObject)
  public
procedure DoSomething(const C: T);
  end;

On Fri, Apr 29, 2011 at 3:28 PM, leledumbo wrote:

> I see now that generics have improved a lot since latest release, we even
> have Delphi compatible syntax in Delphi mode. Recursive generic type is
> supported as well now (finally, I can continue my data structure library
> :)). Seeing these facts, what's the status of this feature now? Is it
> considered stable?--
> View this message in context:
> http://free-pascal-general.1045716.n5.nabble.com/Generics-feature-status-tp4359580p4359580.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] How to translate this union ?

2011-04-29 Thread ik
Hello list,

I'm trying to translate the following
unionto
Pascal, but I do not understand it, and so does h2pas.
How to translate it ?

Thanks,

Ido


LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Generics feature status

2011-04-29 Thread Paul Ishenin

30.04.2011 3:28, leledumbo wrote:

I see now that generics have improved a lot since latest release, we even
have Delphi compatible syntax in Delphi mode. Recursive generic type is
supported as well now (finally, I can continue my data structure library
:)). Seeing these facts, what's the status of this feature now? Is it
considered stable?--
No, they are not stable. FPC generic syntax may change. But you can rely 
on delphi syntax (as we can't change it) with few limitations at the moment:
 - no multiply generics with the same identifier and different amount 
of type parameters [1],

 - no generic methods,
 - no type constraints.

Also I may forgot something.

About [1] - in delphi it is possible to define different generics with 
the same identifier and different amount of type parameteres (even in 
the same unit). E.g.

TList = class ...; TList = class ...; TList = class ...;

Then you can declare variables with any of that types. E.g.
var
  L: TList;
  LI: TList;
  LIO: TList

As I know Sven will work to support this and other missing generics 
features.


Best regards,
Paul Ishenin
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal