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
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,
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
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 -
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
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 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 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 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
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.
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
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
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
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 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.
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 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
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
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 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
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 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 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 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 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 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 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
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 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
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 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 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 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 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
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
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
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
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 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
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 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 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;
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, 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
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
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
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
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, 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
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 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
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 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.
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 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 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 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 3/12/07, Michael Van Canneyt [EMAIL PROTECTED] wrote:
On Mon, 12 Mar 2007, Luiz Americo Pereira Camara wrote:
Take the following example:
for i:= 0 to 2 do;
WriteLn(i);
Can i safely assume that after the for loop the value of i is 2?
No. I think it is even specified in the pascal
I would NEVER rely on this in production code. The value of the control
variable of a For loop after execution should never be relied upon. A simple
change in the compiler at some future point could break a lot of your code.
To be honest I would call it a bug if a comipler didn't warn about it
BTW, while I'm still somewhat on-topic (but quite lazy ;-) , is there
a high-resolution timer in FCL? If not, what about including Martin
Waldenburg's qmwfasttime? Shall I file a request in Mantis?
Best regards,
Flávio
___
fpc-pascal maillist -
I'm not sure if the following are bugs of 2.1.4:
I'm not sure either ;-)
But since these seem too absurd to be true, just make sure:
1) A variable used in the body of a function that I defined, while it
is not defined in the function's var part, the file compiles
successfully.
- you're not
I don't have access to FPC right now, but it seems as if PGdkRectangle
is a pointer type already, not a record type?
-Flávio
On 6/3/07, Airr [EMAIL PROTECTED] wrote:
Hello, all.
I'm trying to get the current position and size of a GTK2 gtkwindow
using the following:
===
function
On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
var
grect :PGdkRectangle;
begin
gdk_window_get_frame_extents(GDK_WINDOW(widget^.window),@grect);
configure_event := True;
end;
===
fpc header for the gdk function is
There are many Portuguese speakers in the list that certainly will be
glad to help too ;-)
Best regards,
Flávio (from Brazil)
On 6/18/07, Francisco Reyes [EMAIL PROTECTED] wrote:
Daniël Mantione writes:
I placed an order at their European distributor http://www.infobooks.pt;
this seems the
What about the TRegExpr library?
http://www.regexpstudio.com/TRegExpr/TRegExpr.html
The license is MIT-like...
Cheers,
Flávio
On 10/31/07, Bee [EMAIL PROTECTED] wrote:
Well, considering that perl's or Python's speed greatly rely on the
underlying C-implementation of (at least) particular
Recent versions of JCL include a pcre header, too.
Even a .obj is provided for linking statically :-)
-Flávio
On 10/31/07, Jeff Pohlmeyer [EMAIL PROTECTED] wrote:
the easiest is simply making a FPC header to
pcre, it might be useful even.
I did that, once upon a time...
On 11/6/07, S. Fisher [EMAIL PROTECTED] wrote:
--- Dani�l Mantione [EMAIL PROTECTED] wrote:
Is it true that a slow program has a worse effect on the shootout
results than a missing program? That seems wrong to me.
There has been a long discussion on the Shootout forums about it.
The compiler uses shortstrings internally, which are the fastest string
type. Pchars are between ansistrings and strings, but offer the least
comfort of all.
With the exception that not having a compiler flag to check
shorstrings' overflows make for for some tricky to debug problems ;-)
On Feb 12, 2008 6:12 PM, Skybuck Flying [EMAIL PROTECTED] wrote:
Lazarus=waste of time for me.
Bye,
Skybuck.
Err, forgive me the (somewhat deserved) rudeness, but may I reply And
all these tenths of your nonsense messages = waste of time for
everybody else...
-Flávio
PS. Disregard my
To the OP: are you using the AnsiString as a buffer (that contains
several strings)? Otherwise, using MyString '' would do
because #0 is only valid as terminator in UTF-8 too.
BTW, IIRC Delphi would generate faster code for the above construction
instead of Length(MyString) 0 because of
Stopbadware.org (actaully Firefox 3 phishing protection) reports the
links as from an attack site.
Maybe the pages should be taken offline until they're fixed?
Best regards,
Flávio
On Tue, Mar 11, 2008 at 8:11 PM, C Western [EMAIL PROTECTED] wrote:
There seems to be some vandalism on the
C) Just out of curiosity, am wondering why FreeAndNil is global procedure
instead of a method/destructor of TObject. I am guessing it is
for compatibility with Delphi which may or may not have a reason?
A method could not act the way FreeAndNil works (zeroing a local
pointer variable). It
On Thu, May 21, 2009 at 5:34 PM, Henrik Genssen
henrik.gens...@mediafactory.de wrote:
(...)
nsMemory.pas(155,13) Warning: Some fields coming before GetMem weren't
initialized
nsMemory.pas(157,17) Warning: Some fields coming before ReallocMem weren't
initialized
nsMemory.pas(157,17) Error:
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,
You can simplify the use-case a lot: simply trying to assign any value
to a Variant after it's been assigned an array throws an exception.
It seems one is not allowed to reassign a Variant which was already
initialized to a VarArray - which IMHO is a good thing ;-) Variable
reuse should have a
Weird, I wouldn't expect OBJFPC mode to allow automatic conversion
from AnsiString to Pointer...
-Flávio
On 5/12/06, Vinzent Hoefler [EMAIL PROTECTED] wrote:
Just found a bug of mine I was wondering about since about three days,
and wanted to share the fun with you:
-- 8 --
// How to raise
ancestor before being cast to any other class, but maybe it's
just me ;-)
-Flávio
On 5/15/06, Jonas Maebe [EMAIL PROTECTED] wrote:
On 15 mei 2006, at 18:09, Flávio Etrusco wrote:
It's a CAST dude! Exception_Message is being case as Not_Now. That
should
work fairly well in most dialects.t
I stand corrected. I've just checked Delphi5 and indeed it allows a
direct typecast from ansistring to any object/class :-/
But Delphi also allows direct cast from enumeration value to pointer
(which FPC doesn't allow), so maybe this is another nice oportunity to
be stricter than Delphi ;-)
On 5/24/06, Пётр Косаревский с mail.ru [EMAIL PROTECTED] wrote:
FK Jonas Maebe wrote:
On 24 mei 2006, at 17:30, Florian Klaempfl wrote:
Not really because it is simply a tar ball of several .tar.gz. Because
gzip is spread wider, we use this instead of bzip2/7zip.
Isn't bzip2 available more
Well, fast is relative...
FPC is clearly slower than Delphi and Kylix compiler; I'd say it feels
like Delphi is two or three time as fast as FPC.
OTOH, FPC is several times faster than Mono, gcc or MS VisualC.
And I'd say it's on par with Sun's javacc...
-Flávio
On 9/2/06, Felipe Monteiro de
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 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 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
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, 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 :=
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 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
1 - 100 of 122 matches
Mail list logo