Re: [fpc-devel] Re: [Lazarus] How to iterate through a TAvgLvlTree

2012-03-22 Thread Marc Weustink
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=

Re: [fpc-devel] Scalar value is accepted as an argument for an open array parameter

2012-06-08 Thread Marc Weustink
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

Re: [fpc-devel] Redefine FillChar() to use out parameter instead

2009-11-19 Thread Marc Weustink
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

[fpc-devel] DEBUGSTART_, DEBUGINFO_ and DEBUGEND_ symbols

2009-11-22 Thread Marc Weustink
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

Re: [fpc-devel] DEBUGSTART_, DEBUGINFO_ and DEBUGEND_ symbols

2009-11-22 Thread Marc Weustink
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

Re: [fpc-devel] debug information for Variant type

2009-12-03 Thread Marc Weustink
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

Re: [fpc-devel] debug information for Variant type

2009-12-03 Thread Marc Weustink
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

Re: [fpc-devel] dwarf debug info bugs

2009-12-04 Thread Marc Weustink
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

Re: [fpc-devel] Defines layout for mips

2009-12-07 Thread Marc Weustink
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

Re: [fpc-devel] Semicolon before else

2010-01-29 Thread Marc Weustink
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

Re: [fpc-devel] Semicolon before else

2010-01-29 Thread Marc Weustink
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

Re: [fpc-devel] Semicolon before else

2010-01-29 Thread Marc Weustink
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

Re: [fpc-devel] procedure ... message(); in Linux

2010-02-18 Thread Marc Weustink
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

[fpc-devel] fcl-image: gray-alpha png issue

2010-05-08 Thread Marc Weustink
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 ==

Re: [fpc-devel] fcl-image: gray-alpha png issue

2010-05-08 Thread Marc Weustink
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

Re: [fpc-devel] Customer Done procedure for dynamic arrays

2010-05-28 Thread Marc Weustink
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

Re: [fpc-devel] SVN, Mac OSX, and Samba

2010-07-06 Thread Marc Weustink
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

Re: [fpc-devel] SVN, Mac OSX, and Samba

2010-07-07 Thread Marc Weustink
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

Re: [fpc-devel] SVN, Mac OSX, and Samba

2010-07-07 Thread Marc Weustink
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

Re: [fpc-devel] Need advice for refactoring

2010-07-17 Thread Marc Weustink
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

Re: [fpc-devel] is that intended? private type section in classes versus visibility

2010-07-26 Thread Marc Weustink
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

Re: [fpc-devel] (Re)compiling FPC or is there something like fpc.bpg?

2010-07-27 Thread Marc Weustink
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

Re: [fpc-devel] OO rewrite - first round finished

2010-08-04 Thread Marc Weustink
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

Re: [fpc-devel] Proposal: Enhanced replacement for assignment operators

2010-08-06 Thread Marc Weustink
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

Re: [fpc-devel] Debugger problem

2010-08-07 Thread Marc Weustink
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,

Re: [fpc-devel] Proposal: Enhanced replacement for assignment operators

2010-08-07 Thread Marc Weustink
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

Re: [fpc-devel] Debugger problem

2010-08-07 Thread Marc Weustink
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

Re: [fpc-devel] Debugger problem

2010-08-07 Thread Marc Weustink
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

Re: [fpc-devel] Proposal: Enhanced replacement for assignment operators

2010-08-07 Thread Marc Weustink
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

Re: [fpc-devel] Conditional Breakpoints using FPC and GDB

2010-08-13 Thread Marc Weustink
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

Re: [fpc-devel] Conditional Breakpoints using FPC and GDB

2010-08-13 Thread Marc Weustink
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

Re: [fpc-devel] String literals

2010-08-24 Thread Marc Weustink
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;

Re: [fpc-devel] Alternative parsers

2010-10-19 Thread Marc Weustink
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

[fpc-devel] Re: [Lazarusdev] gdb driving me nuts => it's starting a 2nd thread for no apparent reason....

2010-11-08 Thread Marc Weustink
:) 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

Re: [fpc-devel] Interface scope incompatibility with Delphi

2010-11-12 Thread Marc Weustink
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

Re: [fpc-devel] parentfp changed to $parentfp

2010-12-08 Thread Marc Weustink
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. "$"

Re: [fpc-devel] Proposal: IIF - IfThen Cond True False

2011-01-12 Thread Marc Weustink
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: *

Re: [fpc-devel] Dwar2 changed?

2011-01-13 Thread Marc Weustink
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

Re: [fpc-devel] GetMem(SomePointer, 0) <> nil

2011-03-01 Thread Marc Weustink
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

Re: [fpc-devel] gdb and stopping at the begin line

2011-06-06 Thread Marc Weustink
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

[fpc-devel]TProcess and SSH

2003-07-23 Thread Marc Weustink
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 __

Re: [fpc-devel]Nested function as argument for TList.Sort

2003-11-27 Thread Marc Weustink
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

Re: [fpc-devel]IDE (general and Darwin)

2004-02-05 Thread Marc Weustink
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

[fpc-devel]fpImage

2004-02-15 Thread Marc Weustink
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

Re: [fpc-devel]fpImage

2004-02-15 Thread Marc Weustink
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

Re: [fpc-devel]Re: fpc-devel digest, Vol 1 #1736 - 4 msgs

2004-04-05 Thread Marc Weustink
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

Re: [fpc-devel]Re: fpc-devel digest, Vol 1 #1736 - 4 msgs

2004-04-06 Thread Marc Weustink
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-

[fpc-devel]Duplicate declaration of TAlignMent

2004-05-29 Thread Marc Weustink
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

Re: [fpc-devel]Proposal for audo-destructors

2004-09-12 Thread Marc Weustink
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

[fpc-devel] FPC_REQUIRES_PROPER_ALIGNMENT

2004-10-12 Thread Marc Weustink
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

Re: [fpc-devel] FPC_REQUIRES_PROPER_ALIGNMENT

2004-10-13 Thread Marc Weustink
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

Re: [fpc-devel] FPC_REQUIRES_PROPER_ALIGNMENT

2004-10-16 Thread Marc Weustink
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

Re: [fpc-devel] FPC_REQUIRES_PROPER_ALIGNMENT

2004-10-17 Thread Marc Weustink
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

[fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
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 - [

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
> >> 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

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
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

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
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

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
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

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
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

RE: [fpc-devel] THandle and 64bit platforms

2004-12-22 Thread Marc Weustink
>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.

RE: [fpc-devel] Compiling error: Invalid Floating point operation

2005-03-10 Thread Marc Weustink
>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

RE: [fpc-devel] utf8 reading

2005-03-10 Thread Marc Weustink
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

[fpc-devel] TStrings.CheckSpecialChars broken

2005-03-10 Thread Marc Weustink
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

RE: [fpc-devel] Subcomponents

2005-04-15 Thread Marc Weustink
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

RE: [fpc-devel] Re: [fpc-l] type discussion

2005-06-02 Thread Marc Weustink
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: >>

RE: [fpc-devel] Re: [fpc-l] type discussion

2005-06-02 Thread Marc Weustink
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

RE: [fpc-devel] type discussion

2005-06-02 Thread Marc Weustink
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

RE: [fpc-devel] Re: [fpc-l] type discussion

2005-06-03 Thread Marc Weustink
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

RE: [fpc-devel] Re: [fpc-l] type discussion

2005-06-03 Thread Marc Weustink
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

Re: [fpc-devel] Library and unit search paths under MacOSX with fpc 2.0.0?

2005-06-15 Thread Marc Weustink
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

[fpc-devel] MacOSX: EXC_ARITHMETIC in PerformHIConversion

2005-08-14 Thread Marc Weustink
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

Re: [fpc-devel] MacOSX: EXC_ARITHMETIC in PerformHIConversion

2005-08-15 Thread Marc Weustink
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

Re: [fpc-devel] MacOSX: EXC_ARITHMETIC in PerformHIConversion

2005-08-15 Thread Marc Weustink
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,

Re: [fpc-devel] MacOSX: EXC_ARITHMETIC in PerformHIConversion

2005-08-15 Thread Marc Weustink
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.

Re: [fpc-devel] About bug 4356 and fpc bugtracker

2005-09-15 Thread Marc Weustink
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

Re: [fpc-devel] About bug 4356 and fpc bugtracker

2005-09-15 Thread Marc Weustink
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

Re: [fpc-devel] About bug 4356 and fpc bugtracker

2005-09-15 Thread Marc Weustink
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

Re: [fpc-devel] About bug 4356 and fpc bugtracker

2005-09-15 Thread Marc Weustink
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

Re: [fpc-devel] Strange behaviour of ;

2005-10-20 Thread Marc Weustink
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

Re: [fpc-devel] Templates / Generics

2005-11-04 Thread Marc Weustink
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

Re: [fpc-devel] Templates / Generics

2005-11-04 Thread Marc Weustink
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

Re: [fpc-devel] Templates / Generics Syntax

2005-11-04 Thread Marc Weustink
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

Re: [fpc-devel] Templates / Generics Syntax

2005-11-04 Thread Marc Weustink
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;

Re: [fpc-devel] Templates / Generics Syntax

2005-11-04 Thread Marc Weustink
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

Re: [fpc-devel] Templates / Generics Syntax

2005-11-04 Thread Marc Weustink
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:

Re: [fpc-devel] Templates / Generics

2005-11-07 Thread Marc Weustink
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

Re: [fpc-devel] Generics Basics

2005-11-08 Thread Marc Weustink
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

Re: [fpc-devel] StrPos giving a access violation

2005-12-09 Thread Marc Weustink
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 --

Re: [fpc-devel] Access Violation with nested DLL's compiled by FPC (and some more info on bug #4538)

2005-12-09 Thread Marc Weustink
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

Re: [fpc-devel] Access Violation with nested DLL's compiled by FPC (and some more info on bug #4538)

2005-12-09 Thread Marc Weustink
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

Re: [fpc-devel] Access Violation with nested DLL's compiled by FPC(and some more info on bug #4538)

2005-12-11 Thread Marc Weustink
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

Re: [fpc-devel] Benchmark for FreePascal

2005-12-14 Thread Marc Weustink
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

Re: [fpc-devel] Access Violation with nested DLL'scompiledbyFPC(andsome more info on bug #4538)

2005-12-14 Thread Marc Weustink
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

Re: [fpc-devel] Benchmark for FreePascal

2005-12-14 Thread Marc Weustink
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

Re: [fpc-devel] Access Violation withnested DLL'scompiledbyFPC(andsome more info on bug #4538)

2005-12-15 Thread Marc Weustink
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

Re: [fpc-devel] Access Violation withnested DLL'scompiledbyFPC(andsomemore info on bug #4538)

2005-12-16 Thread Marc Weustink
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

[fpc-devel] platform directive

2006-03-13 Thread Marc Weustink
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

Re: [fpc-devel] LocateNext

2006-04-08 Thread Marc Weustink
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

Re: [fpc-devel] bug ID #4855

2006-04-10 Thread Marc Weustink
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

Re: [fpc-devel] bug ID #4855

2006-04-11 Thread Marc Weustink
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   2   3   >