Felipe Monteiro de Carvalho wrote:
Can I add a routine to access the AvgLvlTree as an array? To make it a
better substitute to TFPList in objects which offer an indirect
interface to the internal list, such as TLazAccessibleObject.
My idea is defining:
Index zero = Tree.FindLowest
Indez Count-1=
On 8-6-2012 8:18, Alexander Klenin wrote:
The following code compiles both with :
procedure F(const A: array of ShortInt); begin end;
begin F(1); end.
I think this is a bug in FPC, but if not -- it should be documented here:
http://freepascal.org/docs-html/ref/refsu59.html#x157-16700014.4.5
I
Graeme Geldenhuys wrote:
Florian Klaempfl wrote:
initialized. But be warned: with such a parameter type you can easily
create memory leaks with automated types like ansistrings.
Well, isn't that what heaptrc is for?
No, the language should protect you from such easy to make mistakes.
In t
hi,
while adding sourceline info to the Lazarus disassembler output I ran
into the DEBUGSTART_, DEBUGINFO_ and
DEBUGEND_ symbols.
What I wonder is why DEBUGSTART and DEBUGEND are reported as functions,
while DEBUGINFO is reported as datavariable (fpc 2.2.4, stabs).
(gdb) ptype DEBUGSTART_UNI
Jonas Maebe wrote:
On 22 Nov 2009, at 18:43, Marc Weustink wrote:
while adding sourceline info to the Lazarus disassembler output I ran into the
DEBUGSTART_, DEBUGINFO_ and DEBUGEND_
symbols.
What I wonder is why DEBUGSTART and DEBUGEND are reported as functions, while
DEBUGINFO is reported
Jonas Maebe wrote:
On 01 Dec 2009, at 13:42, Paul Ishenin wrote:
Jonas Maebe wrote:
Would it be enough if the type name were changed to "variant"? It
would not be 100% safe (since "variant" is not a reserved word,
anyone can declare a variable/type/... with the name "variant"), but
I don't
Jonas Maebe wrote:
On 03 Dec 2009, at 14:29, Marc Weustink wrote:
Jonas Maebe wrote:
On 01 Dec 2009, at 13:42, Paul Ishenin wrote:
Jonas Maebe wrote:
Would it be enough if the type name were changed to "variant"? It
would not be 100% safe (since "variant" is not a re
Paul Ishenin wrote:
Hello, FPC developers' list.
Today I tried drawf on windows again and found some new bugs.
1) Gdb outpus the next strings for RTL units:
file="../objpas/classes/lists.inc",fullname="D:/programming/fpc/rtl/win32/../objpas/classes/lists.inc",line="600"
D:/programming/fpc
Felipe Monteiro de Carvalho wrote:
I see that mips is progressing =) I added a ppmipsel.lpi file which
builds a cross-compiler here, but I haven't yet managed to build the
compiler from the makefiles or the rtl.
For the RTL I tryed:
C:\Programas\fpctrunk\rtl\linux>make fpc_units CPU_TARGET=mips
Aleksa Todorovic wrote:
On Fri, Jan 29, 2010 at 11:42, Michael Van Canneyt
wrote:
It breaks the behavious of case:
case b of
1 : something;
2 : If a then
DoSomethingElse;
else
DoElse
end;
As it is now, b=2 and a=False will result in no code executed.
After the patch, B=2 and a
Aleksa Todorovic wrote:
On Fri, Jan 29, 2010 at 12:11, Marc Weustink wrote:
Aleksa Todorovic wrote:
On Fri, Jan 29, 2010 at 11:42, Michael Van Canneyt
wrote:
It breaks the behavious of case:
case b of
1 : something;
2 : If a then
DoSomethingElse;
else
DoElse
end;
As it
Matt Emson wrote:
Stefan Kisdaroczi wrote:
Am 29.01.2010 12:08, schrieb Marco van de Voort:
I don't really see a need for this. Some languages are terminator,
some are
separator. We are also not Basic in that we try to disambiguate every
possible syntax.
It is just a risk without real benefit
Michael Schnell wrote:
On 02/18/2010 02:48 PM, Sergei Gorelkin wrote:If this is possible with
FPC/Linux, I
should make sure that it's still possible with the NoGUIApplication
package.
Windows has a built-in transport for the messages, Linux doesn't. Of
course there
are libraries providing simi
Hi,
When fixing lazarus issue #13266 I noticed that in case of reading 8 bit
gray-alpha images, the order of the gray and alpha channel are swapped.
The attached patch fixes this.
Marc
Index: packages/fcl-image/src/fpreadpng.pp
==
Marc Weustink wrote:
Hi,
When fixing lazarus issue #13266 I noticed that in case of reading 8 bit
gray-alpha images, the order of the gray and alpha channel are swapped.
The attached patch fixes this.
False alarm... it appeared to be fixed in r14972. Somehow when comparing
against 2.4.0 I
Andrew Brunner wrote:
I use dynamic arrays for data structures and sometimes types.
Under linux I have had no problems with transversing the list of data
and calling "Done" on all types then calling finalize on the list
itself.
Under windows I just executed the same code that worked under linux
Andrew Brunner wrote:
Hi there,
Anyone using FPC/Lazarus to develop on a MAC OSX and having success
with SVN over a LAN with Samba?
I'm having a hard time getting anything to commit on my OSX box and
wanted to see if someone here has solved the file locking problem that
OSX 10.6 presents.
Neve
Graeme Geldenhuys wrote:
Op 2010-07-06 23:23, Marc Weustink het geskryf:
permissions since there was no extended atribute support.
Since then I switched to nfs.
Slightly off the topic, but do you know if Windows has NFS support? I would
really like to get rid of Samba on our server (also due
Andrew Brunner wrote:
The network I have is a file server running Ubuntu x64 with samba sharing.
All clients (running Ubuntu,Windows,OSX) connect to the file share and
mount it locally. The Windows and Linux boxes mount,
checkout/commit/update, and unmount without problems. The Apple OSX
can mou
Graeme Geldenhuys wrote:
On 17 July 2010 13:51, Marco van de Voort wrote:
Unless other systems really take into account the complete history of
both divergating branches in the merge, and not simply patch/merge, I doubt
VCS matters at all
Git's merge algorithm does this and is a lot more intel
Graeme Geldenhuys wrote:
On 26 July 2010 22:57, Florian Klämpfl wrote:
What makes you think so? Which compiler patches did we reject so far?
Lets take some examples in the last few months alone. I had code for
the RTL. Iterators come to mind - denied. Then there was a patch for a
more cross-p
Adem wrote:
On 2010-07-27 1:10 PM, Joost van der Sluis wrote:
I don't know what you want,
Wel... it all started here [
http://www.mail-archive.com/fpc-devel@lists.freepascal.org/msg17986.html ].
In short, I was trying to test/benchmark a FPC/Lazarus generated exe
against one with Delphi, but I
Hans-Peter Diettrich wrote:
Jonas Maebe schrieb:
In whichever way you are used to debug: with a debugger, with
writeln's, ... The compiler is no different than any other program in
that respect.
While I can use Lazarus to debug the compilation of a single source
file, no such feature exists f
Martin wrote:
And, since I also refuse to learn from the faults of others, some
sarcasm in the end:
begin end is awfull amount of typing => can we replace it with something
shorter? "{" is unfortunately taken, but why need an actual char => just
identify a block, by indenting each line of the blo
Hans-Peter Diettrich wrote:
I've installed Lazarus 0.9.28 (with FPC 2.2.4) 64 bit on Win7/64. Here
gdb works.
Then I built and installed FPC 2.5 (trunk) for further use. The compiled
apps (64 bit) run fine, as long as I disable debugging. With debugging
enabled the application hangs on start,
Alexander Klenin wrote:
Code bloat/duplication is much more serious.
It is usually not just SomeReallyLongVariableNameY, but something like:
SomeFunctionReturningObject(param1, param2).PointArrayField[i] +=
FunctionReturningPointOffset(param);
Try rewriting that without "+=".
Again, we are bac
Hans-Peter Diettrich wrote:
Marc Weustink schrieb:
What if you run a gdb from the command line ?
I'm somewhat confused. There seem to exist two gdb.exe on my system,
with slightly different version numbers, but I can locate only one.
Typically Windows - protect the system from the
Hans-Peter Diettrich wrote:
Jonas Maebe schrieb:
See comment 0035256 at http://bugs.freepascal.org/view.php?id=15692
for how to fix it.
This was not the problem, but reading helped - I had to enable creation
of gdb debug info, to make the debugger work with Lazarus. I wonder why
gdb doesn't
Hans-Peter Diettrich wrote:
Marc Weustink schrieb:
What is wrong with :
MyObj.PointArrayField[i] := MyObj.PointArrayField[i] +
FunctionReturningPointOffset(param)
The need for duplicating a long expression, with chances for typos :-(
Choose shorter expressions and/or use ctrl+space
Graeme Geldenhuys wrote:
PS:
Anybody know how the Duby project (Object Pascal based Debugger) is
progressing, and if support for it could be added to Lazarus or MSEide?
creating a debugger is not that difficult, evaluating (pascal)
expressions is.
And even then evaluating properties is imposs
Martin wrote:
On 13/08/2010 10:14, Graeme Geldenhuys wrote:
Hi,
Lazarus has a dialog for conditional breakpoints, but it doesn't work. I
tried everything.
* set a breakpoint where condition is: TypeDecl.Name = 'TRGBTriple'
Seems that gdb expects double quotes
FName = "abc"
but then it
Hans-Peter Diettrich wrote:
Can we make string literals accepted with embedded whitespace between
ordinal characters?
Currently this is not accepted:
const x: string = #1 #2 #3;
and must be written as
const x: string = #1#2#3; //not very readable
you can use
const x: string = #1 + #2 + #3;
Graeme Geldenhuys wrote:
Op 2010-10-19 10:51, Jonas Maebe het geskryf:
You still have not said a single time what the actual problem is that you are
having.
I believe I have, but I can't remember all the errors, and I have no time
to search the mail archive Just tried to compile that br
:)
On windows I create a remote thread to be able to pause execution to
enable breakpoints and such while the program is running.
See initialisation part of the gdbmi debugger. There I use a few options
to pause execution. On the NT platform the remote thread solution is the
most reliable.
M
Dimitri Smits wrote:
ok, answering my own mail after a small test below
- "Dimitri Smits" schreef:
what I DON'T do is use it like in your example, Graeme. I always
assign the result to a local variable, which goes out of scope in an
implicit finally block at method-exit. Haven't tried if
On 8-12-2010 22:53, Jonas Maebe wrote:
On 08 Dec 2010, at 22:32, Martin wrote:
It seems that the name of "parentfp" (used by neted procedures) depends on the
dwarf version?
-gs and -gw => parentfp
-gw3 => $parentfp
Is there are reason, does the $ have a meaning?
It's a bug in -gw3. "$"
kingbiz...@gmail.com wrote:
I come here humbly to ask for a new implementation, the IIF ?:, the IIF
is a shortcut that make the coding a little faster, it works by
returning a true or a false part of a condition, a more detailed
information can be found there: http://en.wikipedia.org/wiki/%3F:
*
Joost van der Sluis wrote:
On Wed, 2011-01-12 at 23:52 +, Martin wrote:
Has dwarf 2 changed ?
>> TCmdLineDebugger.SendCmdLn "-data-evaluate-expression
^^shortstring(^POINTER($eax)^+12)^^"
<< TCmdLineDebugger.ReadLn "^done,value="#0""
<< TCmdLineDebugger.ReadLn "(gdb) "
You do reali
Hans-Peter Diettrich wrote:
Paul Ishenin schrieb:
I noticed today that if I want to allocate 0 bytes I get not a nil but
a valid pointer. Why?
This will allow for a following Realloc.
Since the resulting pointer of a realloc isn't guarantied the same as
the source pointer, I don't see a pr
Martin wrote:
Having just reported http://bugs.freepascal.org/view.php?id=19466
I started wondering (to late, should have done before the report) and
googled.
It appears that gdb has a "feature" to skip function prologue and
epilogue. However I could not find any info on what info gdb uses to
kn
Hi,
A question, has anyone successfully used ssh in combination with TProcess
and [poUsePipes, poNoConsole, poStdErrToOutPut] as options ?
I get a SIGTTIN or SIGTTOU and the console I run my app from gets flooded
by enter password lines
TIA, Marc
__
At 08:54 27-11-2003, Florian Klaempfl wrote:
Pedro Lopez-Cabanillas wrote:
Hi,
The attached program compiles and works fine under Kylix 3, and also
compiles under fpc 1.9, but bombs with this message:
An unhandled exception occurred at 0x0807F0B5 :
EAccessViolation : Access violation
0x0807F0B5
At 16:47 5-2-2004, Karl-Michael Schindler wrote:
I tried the IDE and the problem was that it needs fvision, which didn't
compile since it contains 386 assembler. Correct me if I am wrong.
80's/90's interface wouldn't be to bad, since my smaller kids may use
Turbopascal at school.
I tried lazaru
Hi,
Is there a maintainer for fpImage ? And what is the development status of
fp(read|write)bmp ? Is anyone working on adding other encodings than 32 bit ?
If not, than I'll have a try to add the missing encodings.
Marc
___
fpc-devel maillist - [EMA
At 22:03 15-2-2004, [EMAIL PROTECTED] wrote:
On Sun, 15 Feb 2004, Colin Western wrote:
> Marc Weustink wrote:
>
> > Hi,
> >
> > Is there a maintainer for fpImage ? And what is the development status
> > of fp(read|write)bmp ? Is anyone working on adding other enco
At 10:53 5-4-2004, Jonas Maebe wrote:
On 5 apr 2004, at 10:41, Marco van de Voort wrote:
Getdir is indeed a function that would provoke the ../ ./ alternate
searching behaviour in strace that Jonas described, if something was wrong
with readdir.
Here's part of the strace of the compiler. It mainl
At 11:23 6-4-2004, Joost van der Sluis wrote:
> Strange. I've always compiled Lazarus on a NFS mount and I've never run
> into this. I've tried the example of Joost on different filesystems (ext3,
> nfs, smbfs), but always got the right output.
Which kernel do you use?
2.4.20-8smp (RH9) and 2.4.18-
Hi,
When searching where TAlignMent was declared I found a declaration in
Classes and one in fcl/db/db.pas
I think the last one should be removed.
Marc
___
fpc-devel maillist - [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel
At 08:42 12-9-2004, [EMAIL PROTECTED] wrote:
Hello.
Absence of automatic construction/destruction of
classes is very painfull and it can significantly
degrade the
development process (i.e. smart pointers and RAII are
impossible). It's one of the greatest flaws of Pascal
relatevly to
C (the second
Hi,
Florian and I had a discussion on IRC and we decided to continue it here.
F:> I guess the main problem will be that the typeinfo structures has
changed to fit sparc 's alignment
M:> this will be on sparc only ?
F:> on cpus which define FPC_REQUIRES_PROPER_ALIGNMENT
F:> mainly, the data after s
At 16:38 13-10-2004, Jonas Maebe wrote:
On 12 okt 2004, at 22:12, Marc Weustink wrote:
M:> Is a sigbus catchable so that you can read the data and continue as
if nothing happened (or is that something at OS level)
That is normally possible, yes. But as Florian said, it's quite a bit of
At 00:15 14-10-2004, Florian Klaempfl wrote:
Marc Weustink wrote:
At 16:38 13-10-2004, Jonas Maebe wrote:
On 12 okt 2004, at 22:12, Marc Weustink wrote:
M:> Is a sigbus catchable so that you can read the data and continue as
if nothing happened (or is that something at OS level)
That is norma
At 20:02 16-10-2004, Florian Klaempfl wrote:
Marc Weustink wrote:
At 00:15 14-10-2004, Florian Klaempfl wrote:
Marc Weustink wrote:
At 16:38 13-10-2004, Jonas Maebe wrote:
On 12 okt 2004, at 22:12, Marc Weustink wrote:
M:> Is a sigbus catchable so that you can read the data and continue
as
Hi,
>From what I understand from the definition of THandle in sysunixh.inc it
is defined as a LongInt, even on 64 bit platforms.
Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how
to solve it ?
Marc
___
fpc-devel maillist - [
>
>> Hi,
>>
>> From what I understand from the definition of THandle in
>> sysunixh.inc it is defined as a LongInt, even on 64 bit platforms.
>> Currently I'm porting Lazarus to x64 and there I need a 64bit
>> THandle, how to solve it ?
>
>File descriptors are still 32bit on x86_64, therefor Thandl
Hi,
From what I understand from the definition of THandle in
sysunixh.inc it is defined as a LongInt, even on 64 bit platforms.
Currently I'm porting Lazarus to x64 and there I need a 64bit
THandle, how to solve it ?
>>>
>>>File descriptors are still 32bit on x86_64, t
At 20:34 20-12-2004, [EMAIL PROTECTED] wrote:
On Mon, 20 Dec 2004, Peter Vreman wrote:
> > Hi,
> >
> > From what I understand from the definition of THandle in
> > sysunixh.inc it is defined as a LongInt, even on 64 bit platforms.
> > Currently I'm porting Lazarus to x64 and the
At 22:50 20-12-2004, [EMAIL PROTECTED] wrote:
On Mon, 20 Dec 2004, Tomas Hajny wrote:
> From: Marc Weustink <[EMAIL PROTECTED]>
> > > > >>>>File descriptors are still 32bit on x86_64, therefor
> > > > >>>>Thandle=32b
At 00:15 21-12-2004, [EMAIL PROTECTED] wrote:
On Tue, 21 Dec 2004, Marc Weustink wrote:
> >This will take some work :-)
>
> For adapting Lazarus I've no problems with it. For ppl wanting to port
apps
> I see more problems. Especially when a shorter version of it exists.
&g
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Florian
>Klaempfl
>Sent: dinsdag 21 december 2004 8:30
>
>Peter Vreman wrote:
>
That said, the RTL should also avoid confusion with the Windows/Delphi
THandle type, and introduce a cross-platform and opaque TFileHandle
type.
>Vincent Snijders wrote:
>
>>
>> Index: fpc-1.9/rtl/win32/sysutils.pp
>> ===
>> RCS file: /FPC/CVS/fpc/rtl/win32/sysutils.pp,v
>> retrieving revision 1.43
>> diff -u -r1.43 sysutils.pp
>> --- fpc-1.9/rtl/win32/sysutils.pp2 Mar 200
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Uberto
Barbini
Sent: donderdag 10 maart 2005 19:30
>
>> UCS-2 or UTF-16 how it called by the unicode consortium is "escaped" as
>> well and you've to take care of it in your code.
>
>mmh, no.
yes :)
>UCS-2 is different from utf-16 (which
Hi,
The TStrings.CheckSpecialChars is missing a not. Now the special chars are
never initialized :(
Marc
Index: stringl.inc
===
RCS file: /FPC/CVS/fpc/rtl/objpas/classes/stringl.inc,v
retrieving revision 1.9
diff -r1.9 stringl.inc
50
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Michael Van
Canneyt
Sent: vrijdag 15 april 2005 9:24
>
>On Fri, 15 Apr 2005, Marc Weustink wrote:
>
>> Hi,
>>
>> Attached is a patch to enable subcomponents to be streamed.
>> Added are the c
From: Gerhard Scholz
Sent: woensdag 1 juni 2005 18:35
>- Original Message -
>From: "Marco van de Voort" <[EMAIL PROTECTED]>
>To: "FPC developers' list"
>Sent: Wednesday, June 01, 2005 1:50 PM
>Subject: Re: [fpc-devel] Re: [fpc-l] type discussion
[big snip]
>> > multiple assignments:
>>
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of listmember
>Maybe a few things should be borrowed from RemObjects Chrome, such as
>
>-- Class Contracts
>http://www.remobjects.com/page.asp?id={DFA00D71-D5A4-40A3-9FD0-251899EB30
D8}
>
>I like the 'require/ensure' aproach.
>
>It makes the
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jamie
McCracken
Sent: donderdag 2 juni 2005 16:32
>var strlist : TStringlist;
>strlist := Tstringlist.create;
>
>I know strlist is a Tstringlist, the compiler knows it too as I have
>declared it so why do I have to spell it out in the cr
Jamie McCracken wrote:
[snip]
>would become under Rad Pascal:
>
>uses
> Classes, SysUtils;
>
> TMyObject = class (Tobject)
> private
> count : integer;
> public
> constructor create; override;
> inherited Create(AnOwner);
> inc (count);
>
> d
listmember wrote:
>>>-- Class Contracts
>>>I like the 'require/ensure' aproach.
>>>
>>>It makes the code more robust and more debuggable, IMHO
>>
>> I think the checks you can do there are to limited. I also wonder what
>> will happen if a require isn't met. Personally I don't want
>> exeption in
Micha Nelissen wrote:
On Wed, 15 Jun 2005 08:29:54 +0200
Ales Katona <[EMAIL PROTECTED]> wrote:
Your fpc.cfg file is ether not existing, in the wrong place or wrongly
configured. I don't know where it should be on MacOSX but if you find it
It's not so simple, I think, because otherwise he
Hi,
I don't know if it is FCP problem, it looks like it is, but I can't see how.
In XCode i've created a Carbon app with the given in main.c. When
running this, everything works as expected. However when I replace
Hello.app/Contents/MacOS/Hello with a version created by FPC from
hello.pp, I g
Jonas Maebe wrote:
On 14 aug 2005, at 17:40, Marc Weustink wrote:
In XCode i've created a Carbon app with the given in main.c. When
running this, everything works as expected. However when I replace
Hello.app/Contents/MacOS/Hello with a version created by FPC from
hello.pp, I g
Jonas Maebe wrote:
On 15 Aug 2005, at 17:47, Marc Weustink wrote:
Are these exceptions by default disabled by gcc ?
The FPC runtime explicitly turns them on by default (since they are
required for detecting errors), while libc doesn't. It is independent
of the compiler used.
So,
Jonas Maebe wrote:
On 15 Aug 2005, at 18:25, Marc Weustink wrote:
Are these exceptions by default disabled by gcc ?
The FPC runtime explicitly turns them on by default (since they are
required for detecting errors), while libc doesn't. It is
independent of the compiler used.
Michael Van Canneyt wrote:
On Wed, 14 Sep 2005, Luiz Américo wrote:
I want just comment that any directory ending with pathdelim will return
false. See below:
DirectoryExists('C:\Windows'): TRUE
DirectoryExists('C:\Windows\'): FALSE
BTW: The fpc bugtracker is quite minimal, not allowing thi
Florian Klaempfl wrote:
Florian Klaempfl wrote:
Marc Weustink wrote:
That is why the Lazarus team switched to mantis. Rewriting the
bugtracker would take also time. And it has also to be maintained.
Further rewriting wouldn't give all options we have with mantis now.
Setting it up co
Michael Van Canneyt wrote:
On Thu, 15 Sep 2005, Marc Weustink wrote:
Michael Van Canneyt wrote:
On Wed, 14 Sep 2005, Luiz Américo wrote:
I want just comment that any directory ending with pathdelim will
return
false. See below:
DirectoryExists('C:\Windows'): TRUE
Director
Florian Klaempfl wrote:
Marc Weustink wrote:
Despite the fact that e.g. my account is still broken :)))
What is broken ?
I tried to reset my password because I forgot it (account name is FPK):
Reset.
This account is protected. You are not allowed to access this until the account
I can confirm this on linux-i386 2.0.0 and darwin-ppc 2.0.1
It looks like "+ " is parsed wrong. The next "program"
compiles fine.
Marc
program testplus;
{$mode objfpc} {$H+}
begin
+ ParamStr(0);
+ ParamCount;
+ Exit;
+ WriteLN;
end.
Alexander Todorov wrote:
Hi all,
i have noticed
Peter Vreman wrote:
Mattias Gaertner wrote:
This page looks only like the start of a proposal. Neither complete nor
official.
Why do you think, that D2006 will have generics?
D2006 <> D11=D2007
How will Delphi handle the following case with overloads and different types:
If it is han
Micha Nelissen wrote:
Marc Weustink wrote:
Peter Vreman wrote:
How will Delphi handle the following case with overloads and
different types:
If the generic is "pre"compiled (which is maybe necesary if you need
access to privates) then I fear some runtime logic has to be adde
Daniël Mantione wrote:
Op Thu, 3 Nov 2005, schreef Mattias Gaertner:
Here is a proposal of the syntax:
type
TGenericClass = class
public
procedure Add(Item: T; Flag: F);
end;
This syntax is almost impossible to implement since in one of your other
mails the symbols to mark the para
Mattias Gaertner wrote:
On Fri, 04 Nov 2005 10:47:42 +0100
Marc Weustink <[EMAIL PROTECTED]> wrote:
Daniël Mantione wrote:
Op Thu, 3 Nov 2005, schreef Mattias Gaertner:
Here is a proposal of the syntax:
type
TGenericClass = class
public
procedure Add(Item: T; Flag: F);
end;
Ales Katona wrote:
Micha Nelissen wrote:
Marc Weustink wrote:
BTW,
what woud be the problem with
type
TMySpecificClass = TGenericClass(TObject, Integer);
Or:
type
TGenericCollection = generic(T: TCollectionItem) class(TComponent)
...implement TCollection and use T
end
Mattias Gaertner wrote:
On Fri, 04 Nov 2005 13:44:55 +0100
Marc Weustink <[EMAIL PROTECTED]> wrote:
Mattias Gaertner wrote:
On Fri, 04 Nov 2005 10:47:42 +0100
Marc Weustink <[EMAIL PROTECTED]> wrote:
Daniël Mantione wrote:
Op Thu, 3 Nov 2005, schreef Mattias Gaertner:
Bram Kuijvenhoven wrote:
Micha Nelissen wrote:
Bram Kuijvenhoven wrote:
Florian Klaempfl wrote:
- we'll use a syntax as close as possible to Chrome, e.g.
type
TList = class
...
end;
I greatly favor this syntaxis above the generic-modifier. It will
look at a lot more familiar to
L505 wrote:
The Very Big Advantage (Tm), is that you get syntax checking, while still
using a type diversely. That's impossible to do (at compile-time) without
generics.
Probably the best example of this is something like TList:
Without generics:
TOrange = class ... end;
TApple = class ... en
Graeme Geldenhuys wrote:
Hi,
The 3rd unit test fails due to StrPos giving a access violation. I ran
this same unit test under Delphi 7 and it passed as StrPos returned a
nil value when passing two '' param values.
Has this been reported as a bug yet?
- CUT --
Stefan van den Berg wrote:
Hi,
I've already asked about this on the community forums on the
freepascal.org site and opened a bug on the bugtracker (bugID #4538).
But none of those show any progress on a solution to the problem I'm
having.
First a little backstory: I'm currently, as part of
Jonas Maebe wrote:
On 9 dec 2005, at 16:03, Marc Weustink wrote:
Before we can say something, what functions do you call, what params,
what calling convention etc.
Does it happen in one specific sequence of calls, to specific
functions/methods etc.
Please provide some more info.
http
Stefan van den Berg wrote:
L505 wrote:
Before we can say something, what functions do you call, what
params, what calling convention etc. Does it happen in one specific
sequence of calls, to specific functions/methods etc.
Please provide some more info.
http://www.freepascal.org/bugs/sho
Jonas Maebe wrote:
On 10 dec 2005, at 22:09, darekM wrote:
I've see that reverse-complement benchmark shootout.alioth.debian.org/benchmark.php?test=revcomp&lang=all> for
FPC is very slow. I discover, that problem is with readln, that
function consume about 90% of time.
In my test (Mac OS
L505 wrote:
The reference count is part of the ansistring itself. An ansistring
is simply a pointer to a record containing a reference count, the
amount of memory currently allocated for the string (i.e., maximum
length -1) and the string itself (a 0-terminated string).
So when passing a string
Jonas Maebe wrote:
On 14 dec 2005, at 18:33, Marc Weustink wrote:
In my test (Mac OS X/PPC, rtl and program compiled with register
variables, text buffer of 64kb) readln's overheid is negligible.
The large cost comes from writeln. The reason the C version is so
much faster is be
L505 wrote:
In short (don't pin me on the names or on exact details in special cases):
^
there was a reason I said this.
Assume you have a ansistring and you assign something to it
S := 'SomeString';
the compiler genera
L505 wrote:
In this case, it decrements 1 and increments 1, so we will always end up with a
very
simple, easy, solvable problem.
1 - 1 = 0
1 - 1 = 0
Nope, since the string was nil, it isn't decremented, so you end up with
a refcount of 1
The string is 1, not nil
1 - 1 = 0 from your diag
Hi,
Question, does the platform derective onlyt work for properties ? It
seems the you may add it to methods and procedures as well, but when
accessing them no warning is issued. On FPC 2.0.2 I only get an warning
if I access property A.
I couldn't find documentation on this either.
Marc
pr
Micha Nelissen wrote:
On Fri, 07 Apr 2006 21:16:23 +0200
Joost van der Sluis <[EMAIL PROTECTED]> wrote:
function Locate(const keyfields: string; const keyvalues: Variant;
options: TLocateOptions; LocateNext : boolean ) : boolean;
So that it's possible to doe a 'locatenext'
But I saw that
Michael Van Canneyt wrote:
On Mon, 10 Apr 2006, Peter Vreman wrote:
Buys Regarding this bug #4855 I need to get it fixed..
The issue like this... I have 2 parts to my system...
The EXE ... and a DLL
In the DLL I have an exported function that returns an Interface...
Function doso
Peter Vreman wrote:
Thanks a lot marc,
I was looking for that code that we used to prove this,
But couldn't find the damn thing...
Your 100% correct in what my problem is...
Id love any help to get this fixed... in fact I need
It fixed :(
I must port our companies server software to linux, and
1 - 100 of 236 matches
Mail list logo