Hello,
This doesn't seem to have an easy solution right now. Many of the functions
needed to set up openssl for this doesn't even seem to have imports in the
FPC package.
You'd then have to import the functions and implement a custom
TSSLSocketHandler, and then hook it using either
Em sáb., 19 de nov. de 2022 18:27, Sven Barth via fpc-pascal <
fpc-pascal@lists.freepascal.org> escreveu:
> (...)
>
>// this kind of constraint that uses T does not work yet
>generic TList> = class
> procedure Sort;
>end;
>
> (...)
>
No? Sad, I use this all the time in Java.
t; Result:=(BRec.A-ARec.A);
>
> end;
>
>
>
> the results are:
>
> 750ms inlined
>
> 950ms not inlined, ~21% slower
>
> 835ms when compare func. is a parameter ~10% slower
>
>
>
> so the gain of inlining is higher for sorting primitive types.
> V.
>
> __
Em seg., 14 de nov. de 2022 15:26, Vojtěch Čihák via fpc-pascal <
fpc-pascal@lists.freepascal.org> escreveu:
> Hi,
>
> I wrote a generic abstract class - a list based on dynamic array (i.e.
> array of T;) and this class can be specialized elsewhere with any type
> (records or classes).
> Part of
Hi,
Em sáb., 30 de abr. de 2022 às 09:13, Mattias Gaertner via fpc-pascal
escreveu:
>
> AFAIK it is planned for mode objfpc to support distinguishing types via
> template count as in mode delphi:
>
> type
> TMyClass = class
> end;
> generic TMyClass = class
> end;
> generic TMyClass =
Hello,
is there something simliar to Java's java.io.File or java.nio.Path for
FPC? Google makes me think there isn't...
Best regards,
Flávio
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
2017-11-06 19:49 GMT-02:00 James Richters :
> I've noticed that line numbers are sometimes off, sometimes quite a bit when
> I receive a run-time error. I had one today, it specified the correct
> function that was responsible for generating the error, however
Hi,
2017-11-02 17:54 GMT-02:00 Graeme Geldenhuys :
> On 2017-11-02 07:17, Michael Van Canneyt wrote:
>>
>> The installer is made with inno setup. There are several inno extract
>> tools
>> available, e.g.:
>> http://constexpr.org/innoextract/
>
>
> Thank you
On Mon, Nov 21, 2016 at 10:09 PM, James Richters
wrote:
> I use notepad++ Vertical editing ALL THE TIME, you cannot do vertical editing
> effectively with a proportional font. For those who aren't familiar with
> it, you can hold down ALT and highlight many
On Wed, Feb 24, 2016 at 9:00 AM, Michael Van Canneyt
<mich...@freepascal.org> wrote:
>
>
> On Wed, 24 Feb 2016, Flávio Etrusco wrote:
>
>> On Wed, Feb 24, 2016 at 8:39 AM, Marco van de Voort <mar...@stack.nl>
>> wrote:
>>>
>>> In our previous
On Wed, Feb 24, 2016 at 8:39 AM, Marco van de Voort wrote:
> In our previous episode, Mark Morgan Lloyd said:
>> > (remember recent discussion about IfThen pseudo-function).
>>
>> More relevant to your situation, I remember discussion about adding an
>> identifier to WITH to use
On Feb 2, 2016 7:41 PM, "geneb" wrote:
>
> (...)
>
> So it's not solving a /problem/ it's lessening an inconvienence(sp!).
>
> I would've gone with IIf(). :)
>
>
> g.
>
The problem with Iff() is:
1) it either retains normal function behavior and thus has to evaluate both
On Mon, Oct 5, 2015 at 1:58 PM, Jürgen Hestermann
wrote:
>
>
> Am 2015-10-04 um 19:11 schrieb mic...@gmail.com:
>>>
>>> But that makes no sense to me. If the OS is designed to potentially
>>> remove
>>> running programs (or parts of it) from memory it cannot allow
On Fri, Dec 12, 2014 at 10:14 AM, silvioprog silviop...@gmail.com wrote:
On Fri, Nov 14, 2014 at 11:18 AM, Fabrício Srdic fabricio.sr...@gmail.com
wrote:
Hello,
What's the current status of the Brook Server Pages project?
What's the recommended template engine to use with Brook Framework?
On Fri, Nov 28, 2014 at 5:54 PM, Ewald ew...@yellowcouch.org wrote:
Hi,
Take the following function prototype (in {$mode objfpc}{$H+} for the
record):
Function SomeFunction(const Data: PChar; const Len: LongWord):
String; cdecl; public;
Looking at the dissasembly of this function, I
On Fri, Oct 31, 2014 at 12:08 PM, silvioprog silviop...@gmail.com wrote:
On Fri, Oct 31, 2014 at 11:23 AM, Sven Barth pascaldra...@googlemail.com
wrote:
Am 30.10.2014 20:49 schrieb silvioprog silviop...@gmail.com:
TMathT; A: TAdderT, constructor = class
It is not yet possible to reuse a
On Mon, Oct 27, 2014 at 3:45 PM, Sven Barth pascaldra...@googlemail.com wrote:
Am 26.10.2014 05:51, schrieb Flávio Etrusco:
On Fri, Oct 3, 2014 at 12:42 PM, Dennis Poon den...@avidsoft.com.hk
wrote:
I think I found a bug in TFPGMap.
Hope some of you can verify it.
The bug seems to relate
On Fri, Oct 3, 2014 at 12:42 PM, Dennis Poon den...@avidsoft.com.hk wrote:
I think I found a bug in TFPGMap.
Hope some of you can verify it.
The bug seems to relate to the binary search used in the method FIND but
it does not occur for all string key values or at all capacity of the map.
On Mon, Sep 29, 2014 at 11:54 PM, Dennis Poon den...@avidsoft.com.hk wrote:
say for example:
type
TmyClass = class
published
procedure Something (sender : Tobject);virtual;
end;
var
myClass : TmyClass;
then somewhere
On Wed, Sep 17, 2014 at 4:38 AM, Frederic Da Vitoria
davito...@gmail.com wrote:
2014-09-17 3:11 GMT+02:00 Flávio Etrusco flavio.etru...@gmail.com:
On Tue, Sep 16, 2014 at 8:09 PM, Philippe phili...@quarta.com.br wrote:
on compiler implementation:
I read in this list that the group lost
On Mon, Sep 15, 2014 at 2:55 AM, Sven Barth pascaldra...@googlemail.com wrote:
On 14.09.2014 18:05, Philippe wrote:
Take this example:
=== code begin ===
(...)
procedure TestWith;
var
p: PTest;
begin
New(p);
with p^ do begin
Prop1 := 42;
Prop2 := 21;
end;
On Tue, Sep 16, 2014 at 8:09 PM, Philippe phili...@quarta.com.br wrote:
on compiler implementation:
I read in this list that the group lost months due a with problem.
People use with, and I guess lot of people use it!
I checked the reference
On Sun, Jul 20, 2014 at 7:24 AM, denisgolovan denisgolo...@yandex.ru wrote:
Hi all
Does anybody know if Lazarus IDE has something similar to View units
(Ctrl+F12) tool, but searching in all search paths defined in project
settings?
It would allow to open modules much quicker than using
On Sun, Feb 9, 2014 at 12:34 PM, Jürgen Hestermann
juergen.hesterm...@gmx.de wrote:
(...)
With the following declaration and code:
---
var A,B: array of integer;
...
SetLength(A,10);
B := A;
SetLength(B,20);
---
both variables A and B point to the same
On Tue, Jan 21, 2014 at 10:45 PM, luciano de souza luchya...@gmail.com wrote:
Hello all,
This code should add all the files of a directory in a tar file.
program e01;
{$mode objfpc}{$H+}
uses
libtar, sysutils;
var
archive: TTarWriter;
search: TSearchRec;
BEGIN
archive :=
Worked like a charm. Thank you very much Michael! (y)
What does (y) mean ?
LOL I was puzzled too. And found a funny topic in Yahoo Answers :-o
But in the end found it's a shortcut for Thumbs Up in Microsoft Messenger.
-Flávio
___
fpc-pascal
On Tue, Aug 20, 2013 at 2:34 AM, Xiangrong Fang xrf...@gmail.com wrote:
Hi Flavio,
Your findings confirmed mine, but not telling me why?
I don't know why, maybe FPC used to be more strict about the use of
inherited, or the docs are simply wrong.
It seems that the virtual keyword has no use
On Mon, Aug 19, 2013 at 10:44 PM, Xiangrong Fang xrf...@gmail.com wrote:
Hi All,
I am reading this document:
http://www.freepascal.org/docs-html/ref/refsu29.html and doing an
experiment with the following code:
program project1;
{$mode objfpc}{$H+}
type
TBase = class
constructor
On Tue, Aug 20, 2013 at 1:54 AM, Osvaldo Filho arquivos...@gmail.com wrote:
Anyone coud help-me?
user1@movotcf:~/Documentos/Desenvolvimento/pascal/svn/ex/lazarus1010$ make
bigide
make -C packager/registration
make[1]: Entrando no diretório
On Wed, Jul 24, 2013 at 4:07 AM, Carsten Bager cars...@beas.dk wrote:
(...)
The {$LONGSTRINGS OFF} directive is given at the beginning of the program,
and that
eliminates any problems with long strings using the 2.05 compiler. That
does not seem to
work with the new compiler.
Is there a
On Fri, Apr 19, 2013 at 1:36 AM, Xiangrong Fang xrf...@gmail.com wrote:
Hi All,
I'm studying how pascal manages strings. I wrote a simple test program:
program stringtest;
{$mode objfpc}{$H+}
uses Classes, sysutils;
function test: PString;
var
s : string;
begin
New(Result);
On Sun, Mar 31, 2013 at 7:36 AM, Mark Morgan Lloyd
markmll.fpc-pas...@telemetry.co.uk wrote:
I wonder whether anybody could throw some light on a curious error. I've
just tried to move a class definition into the interface part of a unit, so
that I could easily add a class helper, but I'm
On Thu, Mar 28, 2013 at 8:51 AM, José Mejuto joshy...@gmail.com wrote:
El 28/03/2013 1:06, Ewald escribió:
Google found an old thread on lazarus mailing list about this (FPC,
gzip and stream) but without any solution, everything mentioned there
has either the limitations of
On Mon, Mar 18, 2013 at 10:42 AM, Sven Barth
pascaldra...@googlemail.com wrote:
Am 18.03.2013 10:36 schrieb Xiangrong Fang xrf...@gmail.com:
(...)
I cannot recall if there is already a notion of alias in free pascal, if
not then we just introduce this idea within the scope of with expression.
On 17/03/2013 12:54, Marco van de Voort wrote:
Since it is a pseudo variable declaration, I would assume VAR syntax and
just use : ?
This is indeed better.
On Sun, Mar 17, 2013 at 10:51 AM, Martin laza...@mfriebe.de wrote:
Or maybe it should require a variable declaration (or otherwise
On Sun, Mar 17, 2013 at 6:59 AM, Sven Barth pascaldra...@googlemail.com wrote:
On 17.03.2013 06:00, Flávio Etrusco wrote:
type generic TAlias1T: TObject = class(TObject)
function Alias1: T;
end;
This already works.
In 2.7 I assume, because it doesn't work in 2.6.2. Great anyway
On Sun, Mar 17, 2013 at 2:10 PM, Sven Barth pascaldra...@googlemail.com wrote:
On 17.03.2013 15:33, Flávio Etrusco wrote:
(...)
static T extends Comparable int IndexOf(ListT p_list, T p_item);
So you're basically just talking about generic methods here?
Yes. Or actually not, it also
On Sat, Mar 16, 2013 at 10:14 PM, Xiangrong Fang xrf...@gmail.com wrote:
I don't know what's make it complex if there are 2 or more subject in
the with?
Context. A conflict case the two object were of the same class.
Are you saying this case:
with MyClassInstance1 as m,
Actually the only thing that makes me uncomfortable about the keyword as,
is that
it strangely reminds me of SQL. I suppose that isn't a bad thing though.
No problem with SQL, but as is already safe typecast, remember? ;-)
-Flávio
___
fpc-pascal
On Sun, Mar 17, 2013 at 12:16 AM, Daniel Gaspary dgasp...@gmail.com wrote:
On Sun, Mar 17, 2013 at 12:07 AM, 印場 乃亜 shir...@galapagossoftware.com wrote:
On 2013/03/17, at 11:37, Flávio Etrusco flavio.etru...@gmail.com wrote:
Daniel, I find this hack as ingenious as atrocious ;-)
But thinking
On 3/11/13, Darius Blaszyk dhkblas...@zeelandnet.nl wrote:
I'm stuck porting a macro from C. Below is the original define. The
part I'm struggeling with is the right most part after the - sign.
#define GETNEXT(x) ((LList *)(((char *) x) - ((char *) (((LList
*)0)^.next
Does anyone
var
vintfl: TInterfaceList;
BTW You should use a IInterfaceList variable
procedure addintf(const aintf: IUnknown);
(...)
addintf(TInterfacedObject.Create);
(...)
It's a pity, but I don't know whether it's fixable (or if needs to be
fixed) in the compiler.
The TInterfacedObject has
On Mon, Mar 4, 2013 at 5:23 PM, Juha Manninen juha.mannine...@gmail.com wrote:
On Mon, Mar 4, 2013 at 9:21 PM, José Mejuto joshy...@gmail.com wrote:
What's the expected output of this code ?
function TheA(): string;
begin
Result:=Result+'A';
end;
writeln(TheA());
I thought that when
On Mon, Feb 25, 2013 at 11:45 PM, Reimar Grabowski reimg...@web.de wrote:
On Tue, 26 Feb 2013 00:02:33 +0100
Reimar Grabowski reimg...@web.de wrote:
But from command line it works. So it is not a FPC problem.
I am really sorry for communicating with myself but I have spoken too early.
Now I
You can use sets or TBits. Unless you mean packed arrays of byte or
word, etc. In this case you just declare myvar: packed array of
byte.
-Flávio
On Mon, Dec 17, 2012 at 5:46 PM, denisgolovan denisgolo...@yandex.ru wrote:
Hi guys
It looks like currently FPC does not support dynamic bitpacked
On Sat, Jul 28, 2012 at 9:07 AM, leledumbo leledumbo_c...@yahoo.co.id wrote:
does the operating system keep an index somewhere ?
ls doesn't, find does AFAIK.
find doesn't have any index over ls. You may be thinking of
locate (actually located) that keeps a textfile with the list of
files.
Apart from _the_ multi-platform commandline video converter, ffmpeg?
http://ffmpeg.org/
It's the back-end for WinFF (and most other utilities like these).
Also, I would expect VirtualDub to run fine with WINE.
-Flávio
On Wed, Jun 20, 2012 at 11:00 AM, Krzysztof dib...@wp.pl wrote:
Hmm, external
On Tue, Mar 6, 2012 at 12:11 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 06 Mar 2012, at 13:28, michael.vancann...@wisa.be wrote:
As far as I know, Currency is always a scaled int64, and didn't interpret
the
request as a request to change that.
The problem is that on i386 (and in
On Mon, Mar 5, 2012 at 11:36 PM, leledumbo leledumbo_c...@yahoo.co.id wrote:
Fpc Trim(): Trim whitespace from the ends of a string.
Where did you get that? The documentation
(http://www.freepascal.org/docs-html/rtl/sysutils/trim.html) doesn't say
so...
And a simple test confirms the docs
Also the HTTP server is
implemented as a component (TComponent descendant), so I gather the
thoughts was that some day they would like it to sit on the Lazarus
component palette, where it will be dropped onto some form or data
module - thus rendering that application frozen too.
It was
Yes, RolByte/Word/Dword/QWord are implemented in 2.6.0rc1.
On Mon, Nov 7, 2011 at 8:27 PM, Peter pe...@pblackman.plus.com wrote:
HI,
Does this release include intrinsic ROL ROR?
'Bug' 6300 is shown as fixed, but I can find no mention in the new features
list.
On Tue, Sep 20, 2011 at 3:28 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
Hi,
I'm porting some of my old Delphi code which used interfaces
extensively. Since I moved to FPC years ago, I liked the idea of
CORBA-style interfaces, and mostly use them under FPC projects.
Anyway, some of
Oops, seems I completely misread your post.
The problem is cite is the kind of (or exactly) the one you're trying to fix :-$
Thanks for Marcos for pointing that out.
-Flávio
2011/9/20 Flávio Etrusco flavio.etru...@gmail.com:
On Tue, Sep 20, 2011 at 3:28 AM, Graeme Geldenhuys
graemeg.li
On Sun, Sep 18, 2011 at 8:35 AM, Marco van de Voort mar...@stack.nl wrote:
In our previous episode, Reinier Olislagers said:
Have got FPC version 2.7.1 [2011/09/17] for i386 on Windows.
What am I doing wrong?
Not reading manuals? :-)
On Sun, Sep 18, 2011 at 9:19 AM, Marco van de Voort mar...@stack.nl wrote:
In our previous episode, Fl?vio Etrusco said:
http://delphi.wikia.com/wiki/FreePascal_detection_and_versioning
a typical usage:
{$if FPC_FULLVERSION 20204}
? // means greater than 2.2.4 here
?{$ifndef}
On Thu, Sep 15, 2011 at 6:37 PM, Mattias Gaertner
nc-gaert...@netcologne.de wrote:
Hi all,
I found the Wiki page about the new for-in loop and found a
misinformation. It stated wrongly that it is not possible to
have multiple enumerators per class. It even gave a proposal
for a new feature
On Mon, Sep 12, 2011 at 2:25 AM, Jürgen Hestermann
juergen.hesterm...@gmx.de wrote:
Flávio Etrusco schrieb:
+= can't be efficiently implemented with two operations (since
concatenating the operand would be unexpected to the user...).
Why not use inc(x,y
On Sun, Sep 11, 2011 at 9:22 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 10 Sep 2011, at 22:32, Flávio Etrusco wrote:
Does FPC allow overloading the += operator? If not, why?
It is translated into x:=x+y at the parser level, and overload resolving
happens later. So once you
Hello,
If write a declaration without result it complains about invalid
syntax; if I add a result it says impossible operator overload.
Does FPC allow overloading the += operator? If not, why?
Best regards,
Flávio
___
fpc-pascal maillist -
Hello,
In Lazarus I found (pseudo)some code like this:
procedure DoSomething(...)
var
v_Results: PInteger;
v_ResultCount: Integer;
begin
v_Result := nil;
PrepareData(..., v_Results, v_ResultCount);
InternalDoSomething(v_Results, v_ResultCount);
end;
procedure PrepareData(..., var
And there is another advantage of using procedures/functions instead of
overloading operators:
You can search for the procedure to look what it actualy does.
Not if you use function/procedure overloading. Then the situation is
exactly the same as for operators.
Repeating myself, if there
Repeating myself, if there isn't something like CodeTools (i.e. only
with text search) is way more difficult to search for operator
declarations.
Why? Searching for operator+ is no more difficult than for function add ?
Blanks and linebreaks... Of course if one always use the same editor,
On Fri, Jul 29, 2011 at 7:31 AM, Henry Vermaak henry.verm...@gmail.com wrote:
On 29/07/11 06:39, Jürgen Hestermann wrote:
Bernd schrieb:
Occasionally I hear other people mentioning operator overloading as a
must-have feature of any decent language but I wonder what real-world
problems
On Thu, Jul 28, 2011 at 1:59 PM, Bernd prof7...@googlemail.com wrote:
2011/7/28 Bernd prof7...@googlemail.com:
I have tried making
use of Interface and TInterfacedObject and this seems to do what I
want: for example when witing A := A + B the + operator would return a
new instance and the
On Tue, Jul 19, 2011 at 2:44 PM, Clay Stuart clay.stu...@gmail.com wrote:
Hello Everyone:
I've got an array of records that looks something like this:
type
node = record
foo : array[1..10] of integer;
bar : array[1..10] of integer;
end
var
graph :
On Mon, Jul 18, 2011 at 2:07 PM, leledumbo leledumbo_c...@yahoo.co.id wrote:
Are object files platform dependent?
No
From the rest of your post I guess you mean yes, they are dependent?
Something tells me they ARE platform independent since they have to be
linked in.
Pardon me? That
On Thu, Jun 23, 2011 at 12:35 PM, Carsten Bager cars...@beas.dk wrote:
Hi
I have this test program. It compiles and runs (shows) under Delphi (5.0).
I can compile (and run it) it under FPC (2.4.4) but it does not show
anything. I can see it in
the Windows Job list - Processes but not under
On Thu, Jun 23, 2011 at 3:18 PM, dhkblas...@zeelandnet.nl wrote:
Hi,
I'm porting an app from Delphi to Lazarus when I came across a couple of
functions from the windows unit. Can anyone help me finding the platform
independent alternatives?
TerminateThread
You shouldn't use it, generally
On Wed, Jun 8, 2011 at 6:17 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 08 Jun 2011, at 10:57, Zaher Dirkey wrote:
Hi, I know when compile the project with optimize in Delphi the variable
freed/allocated after the last line used.
How can i make same in FPC, O3 not worked for me.
I guess you forgot the attachment? ;-)
BTW, do you know the hashtrie component?
http://www.softcomplete.com/hashtrie.asp
Best regards,
Flávio
On Tue, May 24, 2011 at 1:48 PM, leledumbo leledumbo_c...@yahoo.co.id wrote:
I've written a unit containing suffix trie implementation. It could be used
On Fri, May 20, 2011 at 9:26 AM, Marco van de Voort mar...@stack.nl wrote:
In our previous episode, michael.vancann...@wisa.be said:
?
Is there already a TimSort implementation in fpc?
?
http://en.wikipedia.org/wiki/Timsort
Not to my knowledge.
One reference implementation in the
On Fri, Apr 8, 2011 at 6:16 AM, michael.vancann...@wisa.be wrote:
On Fri, 8 Apr 2011, Zaher Dirkey wrote:
2011/4/7 Flávio Etrusco flavio.etru...@gmail.com
On Wed, Apr 6, 2011 at 1:37 PM, Zaher Dirkey parm...@gmail.com wrote:
Can i do that?
type
IIntf3 = interface(IIntf11, IIntf2
On Wed, Apr 6, 2011 at 1:37 PM, Zaher Dirkey parm...@gmail.com wrote:
Can i do that?
type
IIntf3 = interface(IIntf11, IIntf2)
end;
Thanks in advance.
--
Zaher Dirkey
For Corba interfaces, yes. Not for COM interfaces.
http://www.freepascal.org/docs-html/ref/refse39.html
-Flávio
someone@somewhere:~/pascal/Projects/xmldemo$ cat test.xml
?xml version=1.0?
ROOT someAttrib=someValue
SomeNode aAttribute=2 bAttribute=3 ccAttribute=4 aaaAttribute=1/
/ROOT
Looks like the order is governed by the length of the attribute name first
and then alphabetically.
Actually it
On Wed, Sep 1, 2010 at 6:20 PM, Bihar Anwar bihar_an...@rocketmail.com wrote:
On 2 September 2010 3:53:34 AM, Vannus wrote:
i probably shouldn't open my mouth, as i don't quite understand the
question...
however FRED from the game Freespace let you design missions using a
treeview.
Just to
http://delphi.about.com/od/toppicks/tp/delphi-regular-expressions.htm
The regex unit in SynEdit is an old version of the code from
regexpstudio.com (which seems to be offline) is said to be very slow
for processing large sets of data, like a whole file. In SynEdit it`s
used to process single
All TObject descendants have a VMT. The destructor is virtual, BTW.
-Flávio
On Thu, May 27, 2010 at 11:01 AM, Yann Bat batyann...@gmail.com wrote:
Hi,
I don't understand why compilation of the program below failed in fpc
and objfpc mode. In tp and delphi mode it works as expected but in fpc
On Thu, May 6, 2010 at 11:58 AM, Florian Klaempfl
flor...@freepascal.org wrote:
José Mejuto schrieb:
Hello FPC-Pascal,
Thursday, May 6, 2010, 3:53:59 PM, you wrote:
c TList wraps TFPList, which is based internally on an array. So access
c is fast; insertion, deletion not.
But it is faster
On Thu, May 6, 2010 at 7:34 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 06 May 2010, at 23:28, Werner Van Belle wrote:
In 'human' (haha) terms:
- global variable access: write data into 'ds+constant'
- local variables: write data into 'ss+bp+constant'.
Since the latter involves a
2010/5/3 spir ☣ denis.s...@gmail.com:
Hello,
A few questions on the topic:
* Is it possible to define an optional parameter without default value?
* Is it at all possible for an optional *argument* not to be the last in
actual call? Eg
procedure p(a:Integer=0 ; b:Integer=0)
How can
On Thu, Apr 29, 2010 at 6:44 AM, Michael Van Canneyt
mich...@freepascal.org wrote:
On Thu, 29 Apr 2010, Graeme Geldenhuys wrote:
Jonas Maebe het geskryf:
(...)
Jonas tried to explain that this is not possible.
Consider the following - what you propose - statements:
Var
A : Integer;
On Fri, Apr 16, 2010 at 8:32 AM, José Mejuto joshy...@gmail.com wrote:
Hello FPC-Pascal,
Friday, April 16, 2010, 8:42:32 AM, you wrote:
ZD What useful for put procedure in Publish?
I do not know :-? I'll ask in the Lazarus list.
--
Best regards,
José
Published methods can be found
On Fri, Apr 16, 2010 at 4:54 PM, José Mejuto joshy...@gmail.com wrote:
Hello FPC-Pascal,
Friday, April 16, 2010, 9:06:45 PM, you wrote:
FE Published methods can be found with TObject.MethodAddress, that's how
FE the lfm hook event handlers (and why Form event handlers are
FE published).
On Thu, Apr 15, 2010 at 2:51 PM, Bruce Bauman
bruce.bau...@andesaservices.com wrote:
I am porting a large amount of existing Pascal code (MetaWare) to Free
Pascal. Unfortunately, this code makes extensive use of nested
procedures, and the nested procedures often reference variables in the
On Mon, Apr 5, 2010 at 8:29 PM, Justin Smyth
delph...@smythconsulting.net wrote:
guys i've been working on a port of an application that uses the Com
IPersist Interface , one of its procedures seems to be wrong ,
Function GetClassId(clsid:TClsId):HResult; StdCall;
yet i believe it should be
If you still want to use records, before the Dispose(APResultRecord)
set the ansistring fields to '', this will garantee that the reference
is freed.
Or call Finalize() on them.
Flávio
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
On Thu, Mar 25, 2010 at 9:41 AM, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
Hi,
I'm using FPC 2.4.1 with GDB 6.8 under Ubuntu 8.04.2 LTS on a all 64-bit
system.
All var parameters [even of simple types like Integer, Boolean etc.] show
up as memory addresses instead of their values
2010/3/13 Martín Marqués martin.marq...@gmail.com:
I'm checking the mod binary operator, and I found out that if the
dividend is negative, it gives a negative result. AFAIK, mod gives an
integer between 0 and d-1, where d is the divisor.
Isn't this the right behavior?
--
Martín Marqués
From the wiki, it's more interesting to pay in Euros, right?
Is the German PayPal only a localized version, or are they separate
corporations and I'd have to create a different account? And is there
a way to use the German site in English? ;)
Best regards,
Flávio
On Fri, Mar 12, 2010 at 7:07 PM,
On Fri, Mar 12, 2010 at 11:06 PM, Felipe Monteiro de Carvalho
felipemonteiro.carva...@gmail.com wrote:
2010/3/12 Flávio Etrusco flavio.etru...@gmail.com:
From the wiki, it's more interesting to pay in Euros, right?
Is the German PayPal only a localized version, or are they separate
On Mon, Mar 1, 2010 at 6:32 PM, ik ido...@gmail.com wrote:
http://ik.homelinux.org/
On Mon, Mar 1, 2010 at 23:20, Jerry lancebo...@qwest.net wrote:
Don't compare floating points. Ever. Now you see why.
So if I need for example to compare currency or something that is floating
point, how
On Tue, Feb 9, 2010 at 8:50 AM, Honza befelemepesev...@gmail.com wrote:
Probably just reinventing the wheel - I was not able to quickly find a
String builder/buffer elsewhere.
Source code for anyone possible interested is published on a blog (no
ads there, so I hope it's OK to post the link):
On Tue, Dec 1, 2009 at 2:28 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 01 Dec 2009, at 18:03, Luca Olivetti wrote:
I always protect multithreaded sting access with a critical section.
Do you mean it is not needed?
The reference counting of ansistrings/... is thread safe. Accessing
On Sat, Nov 28, 2009 at 7:12 AM, Jürgen Hestermann
juergen.hesterm...@gmx.de wrote:
And there are many reasons why there are so many string types nowadays.
True.
Simply use {mode objfpc}{$h+} like lazarus suggests.
I think the root cause of all these problems are generic types. They cause
On Sun, Nov 29, 2009 at 1:11 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 29 Nov 2009, at 16:51, Anthony Walter wrote:
Having said all that, Jonas, what is the actual implemented behaviour
of FPC? Does it 0 initialize heap memory at startup or not?
I guess you mean global data rather
On Thu, Nov 19, 2009 at 4:18 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 19 Nov 2009, at 07:35, Graeme Geldenhuys wrote:
Somebody did once attempt to correct the var parameter to out parameter
in FillChar, but got to many errors. Probably not a high priority issue,
so the problem was
On Tue, Nov 17, 2009 at 7:19 PM, JoshyFun joshy...@gmail.com wrote:
Hello FPC-Pascal,
Tuesday, November 17, 2009, 8:47:03 PM, you wrote:
c Can the Fill... functions be changed to have the first parameter out
c instead of var ? Surely they don't use it as an input parameter.
Write your own
Hello,
will somebody please create an Ubuntu PPA for newer releases of fpc? ;-)
I guess this would be trivial to the maintainer of fpc packages in
Ubuntu, but if it's not the case/they don't want to, is it ok if do
(try)?
Regards,
Flávio
___
fpc-pascal
On Tue, Nov 10, 2009 at 10:56 AM, Graeme Geldenhuys
gra...@mastermaths.co.za wrote:
Anthony Walter wrote:
In my opinion the warning should be removed, or at least able to be
suppress through a switch. I beginning to make the transition to cross
The compiler is 100% and I think it should
On Sun, May 24, 2009 at 9:30 AM, Jonas Maebe jonas.ma...@elis.ugent.be wrote:
On 21 May 2009, at 22:34, Henrik Genssen wrote:
nsMemory.pas(157,17) Error: Incompatible types: got Realloc(Pointer,
LongInt):^untyped expected procedure variable type of function(var
Pointer,
1 - 100 of 122 matches
Mail list logo