Re: [fpc-devel] Prototype optimisation... Sliding Window

2022-03-11 Thread Flávio Etrusco via fpc-devel
Kudos! In the end, did it make much of a difference in the compilation time? Em sex., 25 de fev. de 2022 às 02:08, J. Gareth Moreton via fpc-devel escreveu: > > I did it! > > After a good week of work and getting things wrong, I finally found a > solution that works nicely and is extensible, at l

Re: [fpc-devel] Fwd: While - Otherwise Statement

2015-10-12 Thread Flávio Etrusco
On Mon, Oct 12, 2015 at 7:15 PM, David W Noon wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mon, 12 Oct 2015 15:11:18 -0400, Wkitty42 (wkitt...@windstream.net) > wrote about "Re: [fpc-devel] Fwd: While - Otherwise Statement" (in > <561c05d6.4010...@windstream.net>): > >> On 10/12

Re: [fpc-devel] VMS Pascal Compiler mode

2014-10-27 Thread Flávio Etrusco
On Mon, Oct 27, 2014 at 8:37 AM, Sven Barth wrote: > On 27.10.2014 11:51, Richard Apthorp wrote: >> >> Hi Sven, >> >> Thanks for the reply. Yes some of it could be handled by a unit for >> special types etc but not sure what adding a new mode means or how to do >> it, could this handle difference

Re: [fpc-devel] suggestion: virtual method co-variance

2014-10-14 Thread Flávio Etrusco
On Tue, Oct 14, 2014 at 7:40 AM, Marco van de Voort wrote: > > I recently had to dive a bit into C++ again, and reconnected with a feature > I liked at first sight, the C++ covariance of virtual methods (changing the > return type of a overriden method to a descendant of the original type). > Goog

Re: [fpc-devel] svn/github conduits broken?

2014-09-07 Thread Flávio Etrusco
Probably some new user committed to svn and the user mapping for these git repositories weren't updated... -Flávio On Sun, Sep 7, 2014 at 4:02 AM, Michal Wallace wrote: > https://github.com/alrieckert/freepascal/ > https://github.com/graemeg/freepascal/ > > Both of these usually sync several tim

Re: [fpc-devel] override works, even if result type changed?

2014-02-23 Thread Flávio Etrusco
On Sun, Feb 23, 2014 at 1:56 PM, Martin Frb wrote: > Just found that the below works. > > Note, that the result type of "a" (overridden) is different. > Well, TFoo2 will always satisfy the needs of TFoo, so it seems save. I still > found it surprising. Is it intended? > > > program Project1; > typ

Re: [fpc-devel] Issue 0025028 (Florian)

2014-02-19 Thread Flávio Etrusco
Just a few points, since nobody replied yet ;-) On Wed, Feb 19, 2014 at 5:55 PM, Thaddy wrote: > This is marked as won't fix. > I do not fully understand that. > > In Delphi, an interface is given a guid internally whatsoever it is > declared. Are you sure about that? I remember different for De

Re: [fpc-devel] for loop unroll optimization

2013-12-15 Thread Flávio Etrusco
On Sun, Dec 15, 2013 at 10:29 AM, Daniel Sapundjiev wrote: > Hi, > > Can someone explain the main idea behind the code > > In optloop.pas > > function unroll_loop(node : tnode) : tnode; > > > > What is the unroll about? > > Thanks in advance > > Daniel Sapoundjiev > http://en.wikipedia.org/wiki

Re: [fpc-devel] Re: TBits problem

2013-11-06 Thread Flávio Etrusco
On Wed, Nov 6, 2013 at 5:45 AM, Andrea Mauri wrote: > any hint? > should I have to open a bug report? > > Il 31/10/2013 16:23, Andrea Mauri ha scritto: >> >> Dear All, >> I am using TBits object but I found some errors using it. Before adding >> a bugreport to the bugtracker I would be sure that t

Re: [fpc-devel] Little feature teaser

2013-08-02 Thread Flávio Etrusco
On Fri, Aug 2, 2013 at 1:07 PM, Sven Barth wrote: > On 02.08.2013 17:50, Flávio Etrusco wrote: >> >> On Fri, Aug 2, 2013 at 12:34 PM, Sven Barth >> wrote: >>> >>> On 02.08.2013 17:01, Mattias Gaertner wrote: >>>> >>>>

Re: [fpc-devel] Little feature teaser

2013-08-02 Thread Flávio Etrusco
On Fri, Aug 2, 2013 at 12:34 PM, Sven Barth wrote: > On 02.08.2013 17:01, Mattias Gaertner wrote: >> >> On Fri, 02 Aug 2013 13:18:53 +0200 >> Sven Barth wrote: (...) >> What about code size? > > > The code size for one unit is the same as if you had (in that example) > declared a variant of "Is

[fpc-devel] Re: Bug in StrUtils.ReplaceStr and ReplaceText

2013-03-26 Thread Flávio Etrusco
On Mon, Mar 25, 2013 at 10:28 PM, Flávio Etrusco wrote: > Hello, > > functions ReplaceStr and ReplaceText don't set their results (in trunk). > The bug is also present in 2.6.2. > Best regards, > Flávio ___ fpc-devel

[fpc-devel] Bug in StrUtils.ReplaceStr and ReplaceText

2013-03-25 Thread Flávio Etrusco
Hello, functions ReplaceStr and ReplaceText don't set their results (in trunk). Best regards, Flávio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Should the compiler work, if compiled with -Cr?

2013-03-16 Thread Flávio Etrusco
> > The particular crash in question is by > cstringpattern: AnsiString; > len:=length(cstringpattern); > recordtokenbuf.write(cstringpattern[1],len); > with a len of zero, writing 0 bytes from an address that is out of range. > > > Could be solved by using > {$PUSH}

Re: [fpc-devel] Improper OUT usage.

2013-03-12 Thread Flávio Etrusco
On Mon, Mar 11, 2013 at 3:44 AM, Jonas Maebe wrote: > > On 10 Mar 2013, at 22:08, Sven Barth wrote: > >> On 10.03.2013 20:39, Flávio Etrusco wrote: >>> I'd really like the compiler would stop with an error if it can't >>> prove a variable/out

Re: [fpc-devel] Improper OUT usage.

2013-03-11 Thread Flávio Etrusco
On Mon, Mar 11, 2013 at 3:07 AM, Sven Barth wrote: > Am 11.03.2013 02:31 schrieb "Flávio Etrusco" : > >> On Sun, Mar 10, 2013 at 6:08 PM, Sven Barth >> wrote: >> > (...) >> > TTest = record >> > t: LongInt; >> > end; >

Re: [fpc-devel] Improper OUT usage.

2013-03-10 Thread Flávio Etrusco
On Sun, Mar 10, 2013 at 6:08 PM, Sven Barth wrote: > On 10.03.2013 20:39, Flávio Etrusco wrote: >> >> I'd really like the compiler would stop with an error if it can't >> prove a variable/out/result is initialized. >> Did anybody try implementing this in FPC?

Re: [fpc-devel] Improper OUT usage.

2013-03-10 Thread Flávio Etrusco
On Sun, Mar 10, 2013 at 11:56 AM, Marco van de Voort wrote: > In our previous episode, Vincent Snijders said: >> > So be careful if you use OUT with types that have range limitations. Not >> > setting the out parameter can make debug tools like gttt difficult. >> > >> >> You found a big in fcp-pas

Re: [fpc-devel] Status of SEH in FPC

2013-03-03 Thread Flávio Etrusco
On Sun, Mar 3, 2013 at 1:28 AM, Sergei Gorelkin wrote: > 03.03.2013 2:53, Flávio Etrusco пишет: > >> Hello, >> >> what's the current state of the SEH in FPC trunk? >> IIRC - and according to wikipedia ;-) - SEH, at least for Windows, was >> in the 2.7 ro

[fpc-devel] Status of SEH in FPC

2013-03-02 Thread Flávio Etrusco
Hello, what's the current state of the SEH in FPC trunk? IIRC - and according to wikipedia ;-) - SEH, at least for Windows, was in the 2.7 roadmap, but I can't find any related brach, or commit, or post. Also AFAIU would have some gains in both executable size and speed, correct? -Flávio

Re: [fpc-devel] Why FreeBSD sem_init() works different to Linux?

2013-02-07 Thread Flávio Etrusco
On Thu, Feb 7, 2013 at 2:33 PM, Graeme Geldenhuys wrote: > On 2013-02-06 19:24, Graeme Geldenhuys wrote: >> Semaphore functionality seems pretty simple though, (...) Not if you want high performance and multi-processor support. ___ fpc-devel maillist -

Re: [fpc-devel] Problem with nested classes and const struct values

2012-04-30 Thread Flávio Etrusco
FWIW FPC 2.6.0 also triggers the same error. AFAICS this problem is somewhat analogous to the limitation when declaring members in a record. Are you sure the unit in your big project is being compiled? -Flávio On Mon, Apr 30, 2012 at 3:39 PM, Andrew Brunner wrote: > Well, > > The problem started

Re: [fpc-devel] Strange Problem!

2012-04-25 Thread Flávio Etrusco
You program isn't valid. You're assigning a constant (a global variable) to Result, so you shouldn't change it's contents through a pointer (if you change it normally the compiler+RTL will COW the value). You can use a shortstring or: Result := StringOfChar(' ', 16); -Flávio On Tue, Apr 24, 2012

Re: [fpc-devel] JVM: Question regarding converted Java code

2011-12-29 Thread Flávio Etrusco
On Thu, Dec 29, 2011 at 10:49 AM, Jonas Maebe wrote: > On 28 Dec 2011, at 23:28, Sven Barth wrote: > >> 1) as it seems to be a rather usual practice in Java, would it be possible >> to disable the "Constructor should be public" warnings if the target cpu is >> the JVM? > > Yes. BTW, is there an

Re: [fpc-devel] Ansistring code page

2011-10-13 Thread Flávio Etrusco
On Thu, Oct 13, 2011 at 7:13 PM, Paul Ishenin wrote: > 13.10.2011 21:21, Jonas Maebe wrote: >> >> This I don't really understand. > > This is how delphi works according to my tests. I will retest to be 100% > sure. > >> Shouldn't the constant be converted at run time from UTF-8 to the >> DefaultSy

Re: [fpc-devel] Re: Converting records back and forth. (Forward declarations for records needed ?!?)

2011-09-20 Thread Flávio Etrusco
And this feature can be implemented with operators, but this is discussion for fpc-pascal, I guess. -Flávio On Tue, Sep 20, 2011 at 9:52 AM, Sven Barth wrote: > Am 19.09.2011 12:32, schrieb Skybuck Flying: >> >> Not sure if it compiles in free pascal, but it does compile in Delphi XE >> at least

Re: [fpc-devel] ViewVC configuration

2011-09-19 Thread Flávio Etrusco
On Mon, Sep 19, 2011 at 5:55 AM, Vincent Snijders wrote: > 2011/9/18 Flávio Etrusco : >> On Sat, Sep 17, 2011 at 5:55 AM, Michael Van Canneyt >> wrote: >>> >>> >> >> It made, thanks a lot! >> You can see for yourself: >> http://svn.freep

Re: RE : [fpc-devel] Unicode support (yet again)

2011-09-19 Thread Flávio Etrusco
On Mon, Sep 19, 2011 at 4:36 AM, Marco van de Voort wrote: > In our previous episode, Fl?vio Etrusco said: >> compatibility feature, and as such should care more about correctness >> and ease-of-use rather than performance. I thought the endless bugs >> WRT to char vs codepoint indexes, even in Ja

Re: RE : [fpc-devel] Unicode support (yet again)

2011-09-18 Thread Flávio Etrusco
On Sun, Sep 18, 2011 at 11:45 AM, Jonas Maebe wrote: > > On 18 Sep 2011, at 13:57, Flávio Etrusco wrote: > >> One obvious way to mitigate this would be to store the last >> CodePoint->Char in the string record, so that at least the most common >> case is covered.

Re: RE : [fpc-devel] Unicode support (yet again)

2011-09-18 Thread Flávio Etrusco
On Sun, Sep 18, 2011 at 6:50 AM, Marco van de Voort wrote: > In our previous episode, Fl?vio Etrusco said: >> >> That's somewhat what I was thinking. Actually something like >> >>   UnicodeString = object >> (...) > Such ability is not unique for an object. One can also do something like > that

Re: RE : [fpc-devel] Unicode support (yet again)

2011-09-17 Thread Flávio Etrusco
On Sat, Sep 17, 2011 at 10:59 AM, DaWorm wrote: > This might be total crap, so bear with me a moment,  In an object like > a Stringlist, there is a default property such as Strings, such that > List.Strings[1] is equivalent to List[1], is there not?  If, as in > .NET or Java, all strings become ob

Re: [fpc-devel] ViewVC configuration

2011-09-17 Thread Flávio Etrusco
On Sat, Sep 17, 2011 at 5:55 AM, Michael Van Canneyt wrote: > > > On Fri, 16 Sep 2011, Flávio Etrusco wrote: > >> Hello, >> may the FreePascal's ViewVC installtion be configured to paginate log >> results? >> It's log_pagesize in viewvc.conf. > &

[fpc-devel] ViewVC configuration

2011-09-16 Thread Flávio Etrusco
Hello, may the FreePascal's ViewVC installtion be configured to paginate log results? It's log_pagesize in viewvc.conf. Best regards, Flávio PS. There's no mention of any bugs related to it since 1.0.1 ;-) http://viewvc.tigris.org/source/browse/*checkout*/viewvc/tags/1.1.11/CHANGES __

Re: the feature request, that started the discussion [Re: Adding properties into existing stabs/dwarf; gdb readable workaround ? [[Re: [fpc-devel] Status and ideas about debug info (stabs, dwarf / dwa

2011-09-16 Thread Flávio Etrusco
> >> 2) Execution of that properties. (getter) >> I understand it depends on GDB, and FPC can probably not affect it much. >> >> As far as the dwarf debug info can have an influence (if at all), it >> would be nice, if execution was NOT automatic. > > This is in contradiction with 1. > I guess Mar

Re: [fpc-devel] Unicode support (yet again)

2011-09-15 Thread Flávio Etrusco
Who will be the first to write a UnicodeString object that uses an AnsiString as buffer so we can start doing some tests? What is in the cpstrnew and other unicode branches of FPC? (sorry, I'm using a 3G limited connection and FPC doesn't have a viewvc...) Can we start putting well thought-out spec

Re: [fpc-devel] Unicode support (yet again)

2011-09-14 Thread Flávio Etrusco
On Wed, Sep 14, 2011 at 6:04 AM, Felipe Monteiro de Carvalho wrote: > On Wed, Sep 14, 2011 at 10:46 AM,   wrote: >>> Can you clarify a bit. When you say "unicode string" to you mean UTF-16 >>> (Delphi's definition of a unicode string), or do you mean a Unicode >>> string in the true sense - it can

Re: Adding properties into existing stabs/dwarf; gdb readable workaround ? [[Re: [fpc-devel] Status and ideas about debug info (stabs, dwarf / dwar3)]]

2011-09-13 Thread Flávio Etrusco
On Mon, Sep 12, 2011 at 11:42 PM, Hans-Peter Diettrich wrote: > DaWorm schrieb: >> >> I don't understand why a property with a getter could ever be ran by a >> debugger.  If I have a property called NextValue, implanted by a method >> called GetNextValue, that increments a field, stores it in a da

Re: [fpc-devel] Delphi XE2 uses FPC for iOS target

2011-08-12 Thread Flávio Etrusco
On Fri, Aug 12, 2011 at 9:18 AM, Michael Schnell wrote: > On 08/12/2011 01:56 PM, Thaddy wrote: >> >> It is not slow at all, it is lightning fast. > > So it obviously does use rendering hardware. >> >> As far as I suspect the framebuffer manipulation is indeed through the >> kernel. > > I did not

Re: [fpc-devel] Const optimization is a serious bug

2011-07-09 Thread Flávio Etrusco
On Sat, Jul 9, 2011 at 6:55 PM, Hans-Peter Diettrich wrote: > Flávio Etrusco schrieb: > >> Isn't this unfortunately encumbered by patents? >> http://wiki.winehq.org/CompilerExceptionSupport >> >> http://yro.slashdot.org/story/05/05/12/1947213/Winelib-H

Re: [fpc-devel] Const optimization is a serious bug

2011-07-09 Thread Flávio Etrusco
On Fri, Jul 8, 2011 at 7:05 AM, Jonas Maebe wrote: (...) > The main problem here is that FPC's exception handling is based on > setjump/longjump. This technique has a relatively high overhead for "try", > but low overhead when an exception actually occurs (of course, since > exceptions are suppose

Re: [fpc-devel] Compiling FPC with DEBUG

2011-06-28 Thread Flávio Etrusco
> > Thanks, I will try. > BTW, what that mean DEBUG=1? Is it exists =2, =3, etc? AFAIK no. >> 2) Did you try running make inside the dir with debug then running the >> normal compile&install procedure? > > No, I didn't because I didn't know this procedure. > >> AFAICT fpc-pascal was ok (if not be

Re: [fpc-devel] Compiling FPC with DEBUG

2011-06-28 Thread Flávio Etrusco
On Tue, Jun 28, 2011 at 9:23 AM, Marcos Douglas wrote: > Hi, > > I compile FPC with success using my tutorial: > http://wiki.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 > > Questions: > 1- How can I compile all packages with DEBUG option

Re: [fpc-devel] 019605: Safety check for "const s: string" (similar to Range or Overflow checks)

2011-06-23 Thread Flávio Etrusco
> >>> On top of what I already wrote on mantis. I believe my initial idea can >>> be further simplified. >>> >>> Given:  procedure Foo(const s1, s2: string); >> >> What about records, arrays etc. containing ref. counted types? > > This case is shlighly different. >(...) I suppose Florian already k

Re: [fpc-devel] Declare variables inside the code

2011-05-11 Thread Flávio Etrusco
On Tue, May 10, 2011 at 1:26 PM, kingbiz...@gmail.com wrote: > I have been playing on other languages sometimes and I see some features > that speed-up a lot the code creating. I'm posting here one, I want to see > what you think about it. > > Good: fast algorithm testings, code creating > Bad?: n

Re: [fpc-devel] type pointer to record before record.

2011-04-29 Thread Flávio Etrusco
> type > TMyRecord = record > mPrev : ^TMyRecord; // not allowed. > end; Marco, only if you happen to know from the top of your head, would it be possible and without consequences to allow this kind of construction? (i.e. a pointer reference to itself) Best regards, Flávio

[fpc-devel] http://freepascal.org/develop.var is outdated (points to 2.2 branch)

2010-05-20 Thread Flávio Etrusco
Hello, The FPC "Development" page (http://freepascal.org/develop.var) still links to 2.2 releases and branch, no mention of 2.4... Best regards, Flávio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinf

Re: [fpc-devel] Parameters must match exactly?

2010-05-19 Thread Flávio Etrusco
On Wed, May 19, 2010 at 2:37 PM, "Vinzent Höfler" wrote: > Graeme Geldenhuys : > >> Florian Klaempfl het geskryf: >> > >> > At least we try to avoid it to make it people too easy to shoot >> > themself into the foot. >> >> Developers should be free to shoot themselves wherever they want! It >> sho

Re: [fpc-devel] Parameters must match exactly?

2010-05-19 Thread Flávio Etrusco
On Wed, May 19, 2010 at 12:16 PM, Florian Klaempfl wrote: > Graeme Geldenhuys schrieb: >> Florian Klaempfl het geskryf: >>> At least we try to avoid it to make it people too easy to shoot themself >>> into the foot. >> >> >> Developers should be free to shoot themselves wherever they want! It shou

Re: [fpc-devel] Parameters must match exactly?

2010-05-18 Thread Flávio Etrusco
On Tue, May 18, 2010 at 3:39 AM, Graeme Geldenhuys wrote: > Florian Klaempfl het geskryf: >> http://en.wikipedia.org/wiki/Factory_method_pattern >>> Sorry for the sarcasm, >> >> Sarcasm? For sarcasm, you need to have a clue. > > No need to be rude. > At first I thought it was rude too. But thinki

Re: [fpc-devel] Parameters must match exactly?

2010-05-14 Thread Flávio Etrusco
On Fri, May 14, 2010 at 11:45 AM, Graeme Geldenhuys wrote: > Hi, > > I tried using FPC 2.5.1 today to see how compatible is our application with > it compared to FPC 2.4.1 > > I got stacks of the following errors.  Why is this change forced in FPC > 2.5.1?  TBulkInvoiceRateListForm class is a desc

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-30 Thread Flávio Etrusco
Issue tracker: http://bugs.freepascal.org/view.php?id=16153 2010/3/30 Flávio Etrusco : > On Tue, Mar 30, 2010 at 6:04 AM, Marco van de Voort wrote: >> In our previous episode, Fl?vio Etrusco said: >>> >>> Second question: In current code, when ASubText is ''

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-30 Thread Flávio Etrusco
On Tue, Mar 30, 2010 at 6:04 AM, Marco van de Voort wrote: > In our previous episode, Fl?vio Etrusco said: >> >> Second question: In current code, when ASubText is '', AnsiStartStr >> returns False and >> AnsiEndsStr returns True. Is this correct? > > If the string='' then ansistartsstr returns tr

Re: [fpc-devel] StrUtils unit (is poorly implemented)

2010-03-29 Thread Flávio Etrusco
2010/3/29 Jonas Maebe : > > On 29 Mar 2010, at 08:57, Michael Van Canneyt wrote: > >> On Sun, 28 Mar 2010, Flávio Etrusco wrote: >> >>> are StrUtils just for Delphi compatibility or are they meant for "real >>> use"? >>> In the firs

[fpc-devel] StrUtils unit (is poorly implemented)

2010-03-28 Thread Flávio Etrusco
Hello, are StrUtils just for Delphi compatibility or are they meant for "real use"? In the first case, is there an alternative unit? In the second, would simple patches to implement "AnsiStartsStr" and "AnsiEndsStr" with CompareMem (for starters) be accepted? Best regards, Flávio _

Re: [fpc-devel] dward debug info - someone promiced more compact debug info than stabs

2010-03-16 Thread Flávio Etrusco
On Tue, Mar 16, 2010 at 12:41 PM, Paul Ishenin wrote: > 16.03.2010 22:33, Jonas Maebe wrote: >>> Why dwarf information has so big debug files (comparing with stabs) on windows? >>> >>> Because Windows (just like Darwin) does not support referring to DWARF >>> debug info from one object f

Re: [fpc-devel] dward debug info - someone promiced more compact debug info than stabs

2010-03-16 Thread Flávio Etrusco
On Tue, Mar 16, 2010 at 12:22 PM, Jonas Maebe wrote: > > On 16 Mar 2010, at 15:58, Paul Ishenin wrote: > >> Why dwarf information has so big debug files (comparing with stabs) on >> windows? > > Because Windows (just like Darwin) does not support referring to DWARF debug > info from one object fil

Re: [fpc-devel] properties with getter evaluation in gdb

2010-03-15 Thread Flávio Etrusco
On Mon, Mar 15, 2010 at 7:31 AM, Jonas Maebe wrote: > > On 15 Mar 2010, at 11:12, Paul Ishenin wrote: > >> 15.03.2010 17:01, Jonas Maebe wrote: >> >>> the only problem in that respect is that without the hacky >>> patch mentioned earlier, GDB's Pascal parser does not support expressing >>> method

Re: [fpc-devel] properties with getter evaluation in gdb

2010-03-12 Thread Flávio Etrusco
On Fri, Mar 12, 2010 at 2:11 PM, Jonas Maebe wrote: > > On 12 Mar 2010, at 17:59, Paul Ishenin wrote: > >> 12.03.2010 23:51, Paul Ishenin wrote: >>> >>> If something more is required please let me know and I will search. >> Also found the next document with more info: >> http://www.agner.org/opti

Re: [fpc-devel] Lazarus keeps it's secrets

2010-03-03 Thread Flávio Etrusco
On Wed, Mar 3, 2010 at 9:08 AM, Jonas Maebe wrote: > > On 03 Mar 2010, at 12:18, Mattias Gaertner wrote: > >> On Wed, 03 Mar 2010 11:44:42 +0100 >> Michael Schnell wrote: >> >>> How come LCL is installed with, and RTL is installed without debugging >>> information ? >> >> To fit most user expecta

Re: [fpc-devel] RTL and Unicode filenames operations.

2010-02-17 Thread Flávio Etrusco
On Wed, Feb 17, 2010 at 4:10 AM, dmitry boyarintsev wrote: > Reported: http://bugs.freepascal.org/view.php?id=15795 > > It's up to FPC team to accept or reject the package. > > thanks, > dmitry I've read somewhere that Windows ANSI functions support utf-8? (despite the name) -Flávio

Re: [fpc-devel] MemSize argument validity

2010-02-17 Thread Flávio Etrusco
> > Afaik fastmm does this on Delphi. Together with having barriers before and > after the allocation that are checked regularly to see if they are > overwritten. I'm sure somebody "has to" have asked this before (maybe even me :-$ ), but has someone ever tried to port fastmm to FPC? Best regards

Re: [fpc-devel] RFC: changing conditional compilation

2010-02-13 Thread Flávio Etrusco
>> Hi Jonas, >> As you can imagine I'd prefer to "solve" the $ifdef "problem" ;-) > > To be honest: no, I can't imagine why you would prefer that. The entire > difference between $ifdef and $if is that $if checks the value of something > (and hence will give an error if the symbol is undefined) and

[fpc-devel] Debugging operators' overloards

2010-02-11 Thread Flávio Etrusco
Hello, is there any known limitation on gdb integration or the debuginfo that prevents gdb from stopping on breakpoints inside operator overload functions? Best regards, Flávio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepa

Re: [fpc-devel] RFC: changing conditional compilation

2010-02-09 Thread Flávio Etrusco
2010/2/9 Jonas Maebe : > > On 09 Feb 2010, at 01:24, Flávio Etrusco wrote: > >>> As far as I know, that's how macros behave. >>> >>> E.g.: >>> >>> {$macro on} >>> >>> {$define xxx:=1} >>> >>> {$if xxx}

[fpc-devel] Announcing releases on LWN

2010-02-08 Thread Flávio Etrusco
Hello, maybe it's a bit late to bring this issue (for the current releases), but is there a reason there was no announcements for the later FPC releases and no Lazarus announcements ever? I think LWN is an important channel to divulging OSS projects. Best regards, Flávio _

[fpc-devel] RFC: changing conditional compilation

2010-02-08 Thread Flávio Etrusco
Hello, The problem I'm trying to solve is that I find the $define system to have a (an unnecessary) propensity for errors caused by typos; if you don't agree please ignore my YAAP (yet another annoying proposition). Because of this propensity for erros with the $define system (and because it caus

Re: Re[2]: [fpc-devel] Circular references and forward declarations

2010-01-08 Thread Flávio Etrusco
> > To summarize: From the language/compiler point of view, large files are > no problem. We already concluded that, and in some cases the language > even forces you to use large files. > > But, from a personal - human point of view, large files are not always > nice. At least, some people think so

Re: [fpc-devel] Idea/question about a language (syntax) extension

2009-12-22 Thread Flávio Etrusco
On Tue, Dec 22, 2009 at 9:09 AM, Florian Klaempfl wrote: > Flávio Etrusco schrieb: >>  But what's your >> opinion on extending it to standard procedures? > > I see no sense in doing so. > Do you mean this syntax or the feature at all? Do you know another way t

Re: [fpc-devel] Idea/question about a language (syntax) extension

2009-12-22 Thread Flávio Etrusco
On Tue, Dec 22, 2009 at 6:34 AM, Jonas Maebe wrote: > > On 22 Dec 2009, at 06:27, Alexander Klenin wrote: > >> I'd say rather something like >> >> CallSomething(Arg1:=10, Arg2:='Test') >> >> which is already sort-of-supported by Delphi for automation classes: >> >> >> http://stackoverflow.com/ques

Re: [fpc-devel] Idea/question about a language (syntax) extension

2009-12-22 Thread Flávio Etrusco
On Tue, Dec 22, 2009 at 5:14 AM, Michael Schnell wrote: > Flávio Etrusco wrote: >> WhAny alternatives? > > Using properties. > > -Michael Err, I don't get it. How do I avoid the situation I mentioned with the "class/record fields" alternative usi

Re: [fpc-devel] Idea/question about a language (syntax) extension

2009-12-21 Thread Flávio Etrusco
On Tue, Dec 22, 2009 at 2:27 AM, Alexander Klenin wrote: > On Tue, Dec 22, 2009 at 14:42, Paul Ishenin wrote: >> 22.12.2009 11:30, Flávio Etrusco wrote: >>> >>> Hi all, >>> I want to propose a syntax extension for the compiler to check >>> parameters&

Re: [fpc-devel] Idea/question about a language (syntax) extension

2009-12-21 Thread Flávio Etrusco
On Tue, Dec 22, 2009 at 1:42 AM, Paul Ishenin wrote: > 22.12.2009 11:30, Flávio Etrusco wrote: >> >> Hi all, >> I want to propose a syntax extension for the compiler to check >> parameters' name on function/procure calls. Would such a patch be >> accepted?

[fpc-devel] Idea/question about a language (syntax) extension

2009-12-21 Thread Flávio Etrusco
Hi all, I want to propose a syntax extension for the compiler to check parameters' name on function/procure calls. Would such a patch be accepted? Does anybody have a suggestion for the syntax? (i guess something along the line of a compiler directive to go together with the parameter value to avo

Re: [fpc-devel] TObject differences between fpc and delphi

2009-10-27 Thread Flávio Etrusco
(...) > The ToString Javaism is poorly implemented in Delphi. I suggest that objfpc > mode should be based on json or similar standards, which are already > available. Not just rtti writeouts. > It's poorly implemented on Java too, nonetheless... -Flávio __

Re: [fpc-devel] Compiler hint for uninitialized local variable minor mistake

2009-05-29 Thread Flávio Etrusco
> (...) > > This is due to the fact that if you pass a variable to an out parameter and > this variable is reference counted or contains reference counted elements > (in case of an array/record/object), then the compiler has to insert > finalization code at the caller side for this variable before

Re: [fpc-devel] Warning: Constructor should be public

2009-04-06 Thread Flávio Etrusco
Actually, your constructor has the same signature as 'TObject.Create', so it should show a 'lower visibility' warning in Delphi, doesn't it? But, indeed, FPC shows the warning (should be public) for all constructors, even if you're not hiding from the parent class, and I always found this a (minor)

Re: [fpc-devel] Re: Debugger for FPC

2009-03-17 Thread Flávio Etrusco
> > I still did not yet get any discussion rolling on the issue of "pure" read > functions (that have no side-effect). The debugger might use a "pure" read > function to show the property value, but it can't if the read function is > not pure. gcc does know about pure functions, thus I suppose DWAR

Re: [fpc-devel] Mantis monitoring configuration

2009-03-03 Thread Flávio Etrusco
> > So this one you should get. IIRC you cannot turn off messages for issues you > reported. No problem, I don't want to do this ;-) >>> BTW, did you know you have (at least) 2 accounts ? >>> > >> Oops. No, I didn't. Or maybe I vaguely remember forgetting my password >> and mantis not having a p

Re: [fpc-devel] Mantis monitoring configuration

2009-03-03 Thread Flávio Etrusco
2009/3/3 Jonas Maebe : > > On 03 Mar 2009, at 06:47, Flávio Etrusco wrote: > >> what's the current status on this issue, please? >> http://bugs.freepascal.org/view.php?id=8803 > > In what sense? Do you still get emails for all bug reports, or do you not > get a

[fpc-devel] Mantis monitoring configuration

2009-03-02 Thread Flávio Etrusco
Hello, what's the current status on this issue, please? http://bugs.freepascal.org/view.php?id=8803 Best regards, Flávio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] New -Xg option in the last 9778 revision

2008-01-18 Thread Flávio Etrusco
> > > That is partly true. The problem is that setting -Xs doesn't help if > > > there is also -g in the > > > command line. So people think that the compiler strips the executable, > > > but in fact the binary is > > > unstripped. > > > > > > > But why doesn't FPC spit a warning when these (seem

Re: [fpc-devel] New -Xg option in the last 9778 revision

2008-01-18 Thread Flávio Etrusco
On Jan 18, 2008 7:47 AM, Peter Vreman <[EMAIL PROTECTED]> wrote: > >> I suggested using Lazarus and the OP said he had great doubts because the > >> size of the exe of his test program is 10 times the size of that compiled > >> by > >> Borland. > > > > Anyone who writes such texts doesn't look fur

Re: [fpc-devel] .NET Reflection vs RTTI

2007-11-19 Thread Flávio Etrusco
> (...) > As far as the information itself that's available through RTTI / Reflection > is concerned, the type information available in .NET is truly complete, down > to every field and every method of every type. Also, the ability to > associate any number of custom attributes with any of the enti

Re: [fpc-devel] property syntax extension

2007-10-18 Thread Flávio Etrusco
On 10/18/07, Inoussa OUEDRAOGO <[EMAIL PROTECTED]> wrote: > > > It is a strong point. > > > > On the other hard keeping the language clean is an important responsible > > task we have. We never planned to be compatible with Delphi.NET. (I have > > never considered Delphi.NET a real Pascal implement

Re: [fpc-devel] property syntax extension

2007-10-18 Thread Flávio Etrusco
(...) > > Maybe: > > procedure MethodX; {%widgetsets win32 wince} > > This should be quicker and easier to implement then extending the ppu > files. > > thanks, > -- > Felipe Monteiro de Carvalho > Amen, brother Felipe ;-) The only downside to is that it'll probably be necessary to keep some dupl

Re: [fpc-devel] delphi compatibility issues

2007-05-25 Thread Flávio Etrusco
> Ow ? > I've coded a lot if interfaces with D6 and luckily it complained if I > forgot to implement some of them. > OTOH if the "abstract" keyword for classes was introduced/implemented in FPC it would be nice to have "partial interface implementation" just like Java ;-) Cheers, Flávio ___

Re: [fpc-devel] Release of fpc-2.1.4 aka 2.2.0-beta

2007-05-21 Thread Flávio Etrusco
On 5/19/07, Joost van der Sluis <[EMAIL PROTECTED]> wrote: Hello everybody, I'm happy to announce that release 2.1.4 aka 2.2.0 beta is out. We ask our users to test the changes made in the last few years. This beta will be available for about two months, whereafter 2.2.0 will be released. Helpin

Re: [fpc-devel] Re: [FPC 0008690]: Add option/directive to ignore "Parameter X not used" hint

2007-04-15 Thread Flávio Etrusco
On 4/14/07, Micha Nelissen <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote: > The "Parameter X not used" hint is specially annoying in the case you use > many callback functions like the used in LCL (TNotifyEvent and alike). Perhaps it's an idea to not show this hint by default for methods de

Re: [fpc-devel] Patch needed for 'make all' to build

2007-03-20 Thread Flávio Etrusco
Err, Marco, I guess this is not part of his change? -Flávio On 3/20/07, Marco van de Voort <[EMAIL PROTECTED]> wrote: > Index: packages/base/Makefile.fpc > === > --- packages/base/Makefile.fpc (revision 6932) > +++ packages/base/M

Re: [fpc-devel] Google summer of code

2007-03-12 Thread Flávio Etrusco
Actually, one can have a Google account with any other "external" email address. Cheers, Flávio On 3/12/07, Marc Weustink <[EMAIL PROTECTED]> wrote: Felipe Monteiro de Carvalho wrote: > I already submited. > > I simply said that many of our mentors don´t have yet a google account > but will cre

Re: [fpc-devel] Array of Ansistring

2007-03-12 Thread Flávio Etrusco
be <[EMAIL PROTECTED]> wrote: On 12 mrt 2007, at 16:25, Flávio Etrusco wrote: > A slightly related question: does FPC memory manager release unused > memory back to the OS? Yes, but not all of it since that causes extreme slowdowns in certain cases (due to constant freeing and reall

Re: [fpc-devel] Array of Ansistring

2007-03-12 Thread Flávio Etrusco
A slightly related question: does FPC memory manager release unused memory back to the OS? Regards, Flávio On 3/12/07, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: Jason P Sage wrote: > MyArray: Array of ansistring; > > There is code I saw that seems to work great using: > > SetLength(MyArray,

Re: [fpc-devel] Tail recursion optimization

2006-10-11 Thread Flávio Etrusco
On a side note, fixing branch priority (order? I like compiler programming but I'm not very into it :-( ) takes the run time down by about 20% on a Duron system... Do you plan to add some related tricks to FPC? (I'm not talking about the advanced "lively analysis" that is in the to-do, but rathe

Re: [fpc-devel] Suggestion for change: Overly strict check

2006-10-03 Thread Flávio Etrusco
> There's a reason, I always write "self.Identifier" and I also refuse to > revert back to the so called Hungarian notation (like AParameter). Even > if there is *no* parameter and/or field with that name it's always > clear which part is meant. This is not Hungarian notation. Hungarian is to pre

Re: [fpc-devel] Linking problem

2006-09-23 Thread Flávio Etrusco
I'd guess this library is exporting (and importing) in C++ symbols and thus can't be linked with FPC? -Flávio On 9/23/06, Ivo Steinmann <[EMAIL PROTECTED]> wrote: Hello all I tried to link libmodplug.so but get this error: /usr/lib/libmodplug.so: undefined reference to `operator new[](unsigne

Re: [fpc-devel] Reading empty collection from stream

2006-09-08 Thread Flávio Etrusco
Agreed, this is one of the weird Delphi misfeatures... In later SynEdit versions I implemented custom streameing functions which only store the "diff" from default keystrokes (i.e. the removed and added keystrokes compared to the default list). -Flávio On 9/7/06, Marc Weustink <[EMAIL PROTECTED

Re: Re[4]: [fpc-devel] Re: dominant short strings in compiler source

2006-05-19 Thread Flávio Etrusco
On 5/19/06, Пётр Косаревский <[EMAIL PROTECTED]> wrote: Sorry, these two letters were accidentally sent personally. To Felipe Monteiro de Carvalho: > > probably Windows will become totally utf16 (not really unicode, but > > at least utf16) really soon (at least in newer versions in a way > > in

[fpc-devel] 'Variable may not have been initialized' hints

2006-05-19 Thread Flávio Etrusco
Hi all, please let me ask a few questions about this "issue": - why these are hints instead of warnings? (maybe because the code isn't still show too many false positives?) - why are they shown to AnsiStrings? Aren't all AnsiStrings always initialized? - would/will you accept patches to fix FPC co

Re: Re[2]: [fpc-devel] Re: dominant short strings in compiler source

2006-05-19 Thread Flávio Etrusco
On 5/19/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: Op Thu, 18 May 2006, schreef Flávio Etrusco: > > L> Dynamic arrays can be very handy and I never knew anyone who avoids > > L> them. Of course if your array has fixed length there's no reason > > L>

Re: [fpc-devel] Re: dominant short strings in compiler source

2006-05-19 Thread Flávio Etrusco
On 5/19/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: Op Fri, 19 May 2006, schreef Micha Nelissen: > On Fri, 19 May 2006 18:29:29 +0100 > Peter Vreman <[EMAIL PROTECTED]> wrote: > > > There are already some complains about the memory usage. Increasing the > > string size adds a lot more overh

  1   2   >