Re: [fpc-pascal] fp universal library ?

2014-02-02 Thread hinst
02.02.2014, 02:45, "Fred van Stappen" : >> > Yep, thanks Michael. >> > >> > Hum, may i export dynamic array ? >> >> No, you'll need to export these as (typed) pointers and a count. >> >> Regards, >> Sven > > Re-Argh, ok, (and i understand now why the library-examples are so simple > :-) ). >

Re: [fpc-pascal] fp universal library ?

2014-02-02 Thread Fred van Stappen
> From: hinsta...@yandex.ru > To: fpc-pascal@lists.freepascal.org > Date: Sun, 2 Feb 2014 15:31:00 +0400 > Subject: Re: [fpc-pascal] fp universal library ? > > > > 02.02.2014, 02:45, "Fred van Stappen" : > >> > Yep, thanks Michael. > >> > > >> > Hum, may i export dynamic array ? > >> > >> No, yo

Re: [fpc-pascal] overload question (variant vs enum subrange)

2014-02-02 Thread Martin Frb
Anybody? Is this designed? Or is this a bug? Shall I put it on Mantis? On 26/01/2014 19:48, Martin Frb wrote: TFoo1 is a sub range of FFoo And it seems to match both TFoo and variant. project1.lpr(24,3) Error: Can't determine which overloaded function to call project1.lpr(15,11) Hint: Found

Re: [fpc-pascal] fp universal library ?

2014-02-02 Thread Fred van Stappen
Hello everybody. Here next episode of the conversion of a useful fp unit into a universal library... The goal is to make a library from a unit used by programs. That unit has lot of complicated procedures-functions, inside some home-made classes, using many dynamic arrays who vary in length and

Re: [fpc-pascal] fp universal library ?

2014-02-02 Thread Fred van Stappen
Yep, a other useful tip : To avoid future problems, use name mangling : Like that : exports myFunc name 'myFunction' ; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b