Re: [fpc-devel] Current "state of opinion" on multiline strings? I still have this up-to-date locally with trunk FPC, despite having neglected pushing this anywhere online for a while now.

2024-12-22 Thread Marcos Douglas B. Santos via fpc-devel
On Sun, Dec 22, 2024 at 8:19 AM Marcos Douglas B. Santos wrote: > > Delphi 12 uses 3 apostrophes to initialize/finish a string block. I meant Delphi 12 uses the triple single-quotes mark. best regards, Marcos Douglas ___ fpc-devel maillist

Re: [fpc-devel] Current "state of opinion" on multiline strings? I still have this up-to-date locally with trunk FPC, despite having neglected pushing this anywhere online for a while now.

2024-12-22 Thread Marcos Douglas B. Santos via fpc-devel
‘’’; > > That or backticks are the only thing that made sense to me. What are the pros > and cons of both? Backticks are easier to type maybe, but I kind of like the > block effect the triple single-quotes make. Backticks are familiar from > another popular language (J

Re: [fpc-devel] A small laugh!

2019-07-23 Thread Marcos Douglas B. Santos
#x27;m sure a few people can > sympathise. Every single one " = ", " := ", ... :D regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Submitting patches using git

2019-07-21 Thread Marcos Douglas B. Santos
BUT I need to squash commits first. Catch 22. > As you have "two master", which one is the original and other has your work, you might use: git checkout master git fetch upstream master git rebase upstream/master regards, Marcos Douglas _

Re: [fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

2019-07-04 Thread Marcos Douglas B. Santos
const Help = ``` Help: -h: Show this help. -i: Print the letter i for no reason. ```; Yes, started at the beginning without indentation. regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

2019-07-03 Thread Marcos Douglas B. Santos
and the comment > above are. > `; > [...] +1 That syntax would be perfect. regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] modeswitch multihelpers

2019-05-13 Thread Marcos Douglas B. Santos
> > code". > > The problem is the same with old style Delphi-like helpers. Multihelpers > didn't change much in this regard. +1 This is the same as having two functions, with the same signature, in two different units. Your program w

Re: [fpc-devel] "Blank slate" next version of FPC

2019-02-20 Thread Marcos Douglas B. Santos
gusting enough) So, instead of add more features, I would recommend we fix some ambiguous structure like this. regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] "Blank slate" next version of FPC

2019-02-20 Thread Marcos Douglas B. Santos
On Wed, Feb 20, 2019 at 1:50 PM Kostas Michalopoulos wrote: > > > and Niklaus Wirth might not throw a curse in us. > > Considering we're talking about a dialect with three different > incompatible yet mostly overlapping object systems, i think the curse > has already been cast long long ago :-P.

Re: [fpc-devel] "Blank slate" next version of FPC

2019-02-20 Thread Marcos Douglas B. Santos
On Wed, Feb 20, 2019 at 10:25 AM Henry Vermaak wrote: > > On Wed, Feb 20, 2019 at 09:47:20AM -0300, Marcos Douglas B. Santos > wrote: > > On Wed, Feb 20, 2019 at 8:32 AM Henry Vermaak > > wrote: > > > I'm mostly more interested in limiting the scope to prevent

Re: [fpc-devel] "Blank slate" next version of FPC

2019-02-20 Thread Marcos Douglas B. Santos
grained control of where > managed variables get freed. Try to see restrictions as a good thing. In this case, which Pascal doesn't allow to declare inline variables, you must split big functions, which has many local variables, in others to have a better understanding of the algorithm.

Re: [fpc-devel] "Blank slate" next version of FPC

2019-02-20 Thread Marcos Douglas B. Santos
gt; still do happen to me ocasionally in Pascal). Again, if you has many variables into a method, is a problem in the design. You must split the code in other methods. If you have blank lines inside a method, this is another case to split... regards, Marcos Douglas

Re: [fpc-devel] "Blank slate" next version of FPC

2019-02-20 Thread Marcos Douglas B. Santos
code, it turns the language a mess. I could say the same for others "new features", but it isn't the place. regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Why/how does the compiler have a non-trivial number ofmemory leaks after over two decades of development?

2018-07-30 Thread Marcos Douglas B. Santos
On Mon, Jul 30, 2018 at 3:31 PM, R0b0t1 wrote: > On Mon, Jul 30, 2018 at 11:42 AM, Marcos Douglas B. Santos > wrote: >> On Mon, Jul 30, 2018 at 12:29 PM, R0b0t1 wrote: >> >> [...] > > If a program isn't long running I see programmers tend to not care > ab

Re: [fpc-devel] Why/how does the compiler have a non-trivial number ofmemory leaks after over two decades of development?

2018-07-30 Thread Marcos Douglas B. Santos
On Mon, Jul 30, 2018 at 12:29 PM, R0b0t1 wrote: > On Mon, Jul 30, 2018 at 7:32 AM, Martok wrote: >> Am 30.07.2018 um 14:24 schrieb Marcos Douglas B. Santos: >>> Is performance more important than being correct? :| >> In this project, the answer is always taken to be

Re: [fpc-devel] Why/how does the compiler have a non-trivial number ofmemory leaks after over two decades of development?

2018-07-30 Thread Marcos Douglas B. Santos
; blocks. I'm not sure why this is the case, >> but might be speed related. >> > > Correct. Even implicit try-finally frame generation is disabled for the > compiler source. > Is performance more important than being correct? :| regards, Marcos Douglas

Re: [fpc-devel] FPC Macros: Could it be used for unit aliases?

2018-06-27 Thread Marcos Douglas B. Santos
On Wed, Jun 27, 2018 at 11:51 AM, Sven Barth via fpc-devel wrote: > Marcos Douglas B. Santos schrieb am Mi., 27. Juni 2018, > 14:37: >> >> Sven and all, >> Is there any change to implement this? > > > Not from me. I don't care about that. Thanks for yo

Re: [fpc-devel] FPC Macros: Could it be used for unit aliases?

2018-06-27 Thread Marcos Douglas B. Santos
Sven and all, Is there any change to implement this? Thanks. Best regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] FPC Macros: Could it be used for unit aliases?

2018-06-24 Thread Marcos Douglas B. Santos
On Sun, Jun 24, 2018 at 5:49 PM, Marcos Douglas B. Santos wrote: > Instead, I prefer using fully qualified names and just adjust in some > contexts that *there is* already a conflict name. > In other words, `uses foo as bar;` will be use per unit. It is not to > intent "renaming

Re: [fpc-devel] FPC Macros: Could it be used for unit aliases?

2018-06-24 Thread Marcos Douglas B. Santos
On Sun, Jun 24, 2018 at 4:06 PM, Sven Barth via fpc-devel wrote: > Am 24.06.2018 um 16:49 schrieb Marcos Douglas B. Santos: >> >> Hypothetically, let's suppose that Windows and Graphics unit belongs >> to `FPC.RTL.` namespace, a "long name". >> Us

[fpc-devel] FPC Macros: Could it be used for unit aliases?

2018-06-24 Thread Marcos Douglas B. Santos
scal/2018-June/054255.html [2] http://wiki.freepascal.org/Namespaces#The_.22uses.22_clause Best regards, Marcos Douglas PS. If it might be accepted, please, make it usable in objfpc and delphi mode. I use the last one because the syntax (eg. generics) is simpler. _

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread Marcos Douglas B. Santos
On Mon, Jun 18, 2018 at 5:01 PM, Florian Klämpfl wrote: > Am 18.06.2018 um 22:00 schrieb David Jenkins: >> >> This is something that has just recently stopped working for us(with >> update >> to current trunk). We previously were using trunk rev 36812 with no >> problems. > > > Please submit a bu

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread Marcos Douglas B. Santos
e messages with {$MODE OBJFPC}. Is this known. I can enter > a Mantis if desired. Hey David, The compiler says "Can't determine which overloaded function to call" because both are strings. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Closures / anonymous methods

2017-10-17 Thread Marcos Douglas B. Santos
source. > > No other features are planned by me before the merge. I am currently hung up > on a couple of FPC bugs. Once I file them, I will enable public read access. What is the progress? Best regards, Marcos Douglas ___ fpc-deve

Re: [fpc-devel] Using double quotes

2016-02-28 Thread Marcos Douglas
still a patch > waiting in Mantis. With this the contents would be in separate file, thus > not only not cluttering the Pascal source, but also allowing the use of an > editor with syntax highlighting as in your example with the SQL. OK, $IncludeString directive

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Marcos Douglas
roblem of not being clear where and how many spaces are in > that string... Was just an example. Imagine a huge SQL instead. Best regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Marcos Douglas
On Sat, Feb 27, 2016 at 6:38 AM, Mark Morgan Lloyd wrote: > Marcos Douglas wrote: >> >> Is there any chance to implement in the compiler something link this? >> >> S := " >> insert into t ( >> id, description >> ) values ( >> 1,

Re: [fpc-devel] Using double quotes

2016-02-27 Thread Marcos Douglas
On Fri, Feb 26, 2016 at 8:12 PM, Sven Barth wrote: > Am 26.02.2016 21:21 schrieb "Marcos Douglas" : >> >> Is there any chance to implement in the compiler something link this? > > No. Is there a good reason or you just don&#

[fpc-devel] Using double quotes

2016-02-26 Thread Marcos Douglas
Pascal don't use double quotes so, I think, we doesn't need it a "@", only double quotes. Best regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

2016-01-29 Thread Marcos Douglas
overhead that you talk about be slow, is still considerable? In other words, do you consider refcounting always slow in all cases? Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

2016-01-29 Thread Marcos Douglas
On Fri, Jan 29, 2016 at 10:47 AM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> ... >> But even if you have small objects (max 3-5 methods and few attributes...) >> this >> overhead that you talk about be slow, is still considerable? >

Re: [fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

2016-01-27 Thread Marcos Douglas
On Wed, Jan 27, 2016 at 11:05 AM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> On Wed, Jan 27, 2016 at 7:22 AM, Michael Van Canneyt >> wrote: >> > I don't think namespaces are the holy grail. >> > >> > Assume we

Re: [fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

2016-01-27 Thread Marcos Douglas
point) > > Now let's take example existing routines such as > ExtractFilePath > ExtractFileName > Where do we put them ? Using your examples names -- I say that because I disagree they are good names: Core.File.Utils - ExtractFilePath - ExtractFileName These functions 'belon

Re: [fpc-devel] Generics.Collections as package for Lazarus or package for FPC RTL

2016-01-27 Thread Marcos Douglas
r me, not is because we don't use 'dots' in unit names but the names chosen itself. For example: Lazarus has LCLProcs, LazUTF8. Why haven't added "Laz" every unit? Lazarus.Text.Encoding is a beautiful name... but just using LazTextEncoding,

Re: [fpc-devel] What means -Oodfa ?

2015-08-13 Thread Marcos Douglas
On Sun, Mar 22, 2015 at 12:55 PM, Florian Klaempfl wrote: > Am 22.03.2015 um 15:53 schrieb Juha Manninen: >> There are some false positive warnings. > > Trunk or fixes? > >> [...] > > This should be fixed in trunk. Could be fixed in "

Re: [fpc-devel] Pascal Standard, and what we can do.

2015-07-20 Thread Marcos Douglas
ng object orientation only because they use an object-oriented language. They also think that using a more "cool" syntax makes your code more "professional". But some evolutions in a language could be a good thing, as Sven have said. Regards, Marcos Douglas

Re: [fpc-devel] Pascal Standard, and what we can do.

2015-07-20 Thread Marcos Douglas
gt; don't interfere with backwards compatibility and fit into the language as a > whole. +1 Regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] ptop.pp(21, 29) Fatal: Can't find unit CustApp used by PtoP

2015-01-06 Thread Marcos Douglas
On Tue, Jan 6, 2015 at 3:13 PM, Marcos Douglas wrote: > Hi, > > I can not compile the FPC trunk updated today. > > -- > [...] > 86.exe -bu > Start compiling package utils for target i386-w

[fpc-devel] ptop.pp(21, 29) Fatal: Can't find unit CustApp used by PtoP

2015-01-06 Thread Marcos Douglas
Hi, I can not compile the FPC trunk updated today. -- [...] 86.exe -bu Start compiling package utils for target i386-win32. Compiling BuildUnit_utils.pp Compiling usubst.pp Compiling ptopu.pp Compi

Re: [fpc-devel] Ambiguity between function result and overloaded function

2015-01-06 Thread Marcos Douglas
delphi dialects, do not you think it's better all dialects work as Delphi works? Only in this case, of course. IMHO this is an inconsistency in the language. Sometimes use "()" sometimes not? Best regards, Marcos Douglas ___ fpc-devel ma

Re: [fpc-devel] MS SQL tests: fix for string settings & invalid dates

2014-11-18 Thread Marcos Douglas
On Tue, Nov 18, 2014 at 8:56 AM, Marcos Douglas wrote: > On Mon, Nov 17, 2014 at 6:50 PM, JP Stolk wrote: >> >> Hello, >> >> >> >> I am struggeling with Lazarus and a connection to MSSQL server 2005. >> >> I get the data, but when i change a

Re: [fpc-devel] MS SQL tests: fix for string settings & invalid dates

2014-11-18 Thread Marcos Douglas
e problem could be transaction, PK do not exists or other thing. I work with MSSQL 2005~2008 without these problems. But, I have problems with Transactions because SQLdb works little different to Delphi so, I create a project, the Greyhound*, that works better for me. Maybe you shoud try. * http

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-07 Thread Marcos Douglas
On Mon, Apr 7, 2014 at 5:44 AM, Michael Van Canneyt wrote: > > > On Sat, 5 Apr 2014, Marcos Douglas wrote: > >>> >>> Michael. >> >> >> Hi Michael, >> >> A first little patch. >> In line 1101 -- Function TPasToJSConverter.Co

Re: [fpc-devel] Pascal to Javascript - Call for Help

2014-04-05 Thread Marcos Douglas
the system unit (no classes unit, to name but > one). > > Feel free to discuss here or mail me in private with more questions. > > Michael. Hi Michael, A first little patch. In line 1101 -- Function TPasToJSConverter.ConvertRepeatStatement -- you need to put a "raise" ===code=== except

Re: [fpc-devel] FPC 2.6.4 release!

2014-03-11 Thread Marcos Douglas
On Tue, Mar 11, 2014 at 6:18 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> >> http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 ? >> > >> > from memory .. tags/release_2_6_4 >> >> Yes, thanks... but for updat

Re: [fpc-devel] FPC 2.6.4 release!

2014-03-11 Thread Marcos Douglas
On Tue, Mar 11, 2014 at 5:57 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> Where is the branch for download, >> http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 ? > > from memory .. tags/release_2_6_4 Yes, thanks... but for updates w

Re: [fpc-devel] FPC 2.6.4 release!

2014-03-11 Thread Marcos Douglas
ch for download, http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 ? Best regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Marcos Douglas
On Tue, Mar 5, 2013 at 11:46 AM, Paul Ishenin wrote: > 05.03.13, 21:00, Marcos Douglas пишет: > >> So now we have 7! ;-) >> I want to keep the language sane too. > > > I wrote not about sane/insane. Delphi adds features to pascal the way they > want - this is real

Re: [fpc-devel] Delphi anonymous methods

2013-03-05 Thread Marcos Douglas
On Tue, Mar 5, 2013 at 7:10 AM, Paul Ishenin wrote: > 05.03.13, 17:55, Sven Barth wrote: > >> @Paul: see? :) > > > I see you, Graeme, Michael and probably some more 5-6 developers. So now we have 7! ;-) I want to keep the language sane too. Re

Re: [fpc-devel] Delphi anonymous methods

2013-03-04 Thread Marcos Douglas
ured code (with names and defined in the > correct location in my unit]. I simply don't see a need for anonymous > methods. Maybe other languages have them, because they didn't have the > method pointer construct to start with? +1 Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Re: Comparison FPC 2.6.2 - Kylix 3

2013-03-04 Thread Marcos Douglas
On Mon, Mar 4, 2013 at 5:26 AM, Vittorio Giovara wrote: > On Mon, Mar 4, 2013 at 12:35 AM, Marcos Douglas wrote: >> >> On Sun, Mar 3, 2013 at 8:29 PM, Vittorio Giovara >> wrote: >> > On 04/mar/2013, at 00:21, Marcos Douglas wrote: >> > >> > [cu

Re: [fpc-devel] Delphi anonymous methods

2013-03-03 Thread Marcos Douglas
gt; end; > > > >From what I can see, anonymous methods are just like the above code... > allowing a declaration of a procedure/method in-line inside a code block > where in shouldn't belong. It is very, very un-Pascal like. The end > result is unreadable code, probabl

Re: [fpc-devel] Re: Comparison FPC 2.6.2 - Kylix 3

2013-03-03 Thread Marcos Douglas
On Sun, Mar 3, 2013 at 9:00 PM, Graeme Geldenhuys wrote: > On 2013-03-03 23:21, Marcos Douglas wrote: >> >> Sad. Instead of "fight", why not walking together? > > I'm not joining any "fight", simply wanted to know what the 'm' stood for.

Re: [fpc-devel] Re: Comparison FPC 2.6.2 - Kylix 3

2013-03-03 Thread Marcos Douglas
On Sun, Mar 3, 2013 at 8:29 PM, Vittorio Giovara wrote: > On 04/mar/2013, at 00:21, Marcos Douglas wrote: > > [cut] > >> FPC Team: >> Try to hear Martin otherwise, because he is a great developer with great >> ideas. > > I am no fpc dev here, but patches

Re: [fpc-devel] Re: Comparison FPC 2.6.2 - Kylix 3

2013-03-03 Thread Marcos Douglas
in your thoughts, in your great ideas. IMHO the MSEgui should be part of FPC, somehow, but... FPC Team: Try to hear Martin otherwise, because he is a great developer with great ideas. Best regards, Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] LLVM

2012-12-26 Thread Marcos Douglas
On Wed, Dec 26, 2012 at 10:20 AM, Michael Van Canneyt wrote: > > > On Wed, 26 Dec 2012, Marcos Douglas wrote: > >> On Wed, Dec 26, 2012 at 9:49 AM, Michael Van Canneyt >> wrote: >>> >>> >>> >>> >>> On Wed, 26 Dec 2012, M

Re: [fpc-devel] LLVM

2012-12-26 Thread Marcos Douglas
On Wed, Dec 26, 2012 at 9:49 AM, Michael Van Canneyt wrote: > > > > On Wed, 26 Dec 2012, Marcos Douglas wrote: > >> On Wed, Dec 26, 2012 at 2:07 AM, Martin Schreiber wrote: >>> >>> Hi, >>> Does any body work on a LLVM backend for Free Pascal? >

Re: [fpc-devel] LLVM

2012-12-26 Thread Marcos Douglas
t; > Thanks, Martin The author of ExtPascal created this project: llvm-pascal http://code.google.com/p/llvm-pascal/ Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Considerations about observer [was: Free Pascal 2.6.2 rc1]

2012-11-28 Thread Marcos Douglas
rvers, >> but I do not see sufficient reasons to change the interface and introduce an >> incompatibility. > > Incompatibility with not yet released code? I agree. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] [crossinstall] Fatal: Can't find unit process used by fpmkunit

2012-10-16 Thread Marcos Douglas
7.1/packages' make[2]: *** [packages_all] Error 2 make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1' make[1]: *** [build-stamp.x86_64-win64] Error 2 make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1' make: *** [crossinstall] Error 2 .........

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 2:43 PM, Michael Van Canneyt wrote: > > > On Thu, 27 Sep 2012, Marcos Douglas wrote: > >>> >>> I hope not :-) >> >> >> Of course the second is (a little) better. >> >> But, If you permits: >> for i :

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 2:26 PM, Michael Van Canneyt wrote: > > > On Thu, 27 Sep 2012, Marcos Douglas wrote: > >>>> However we can use "poor names" -- very difficult to happen a >>>> collision -- to represent a variable like A, J, D... but I do

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 1:58 PM, Graeme Geldenhuys wrote: > On 2012-09-27 17:52, Marcos Douglas wrote: >> >> I agree that is much simpler... but why nobody, in another language, >> do the same? Does not worth it? I do not know. > > Well, other languages have there own

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 1:55 PM, Graeme Geldenhuys wrote: > On 2012-09-27 17:46, Marcos Douglas wrote: >> >> This "feature" have the origin in a bug in compiler. > > Yeah, but it takes a human to debug such issues. The compiler might have > no problem understa

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 1:48 PM, Michael Van Canneyt wrote: > > > On Thu, 27 Sep 2012, Marcos Douglas wrote: > >> On Thu, Sep 27, 2012 at 12:08 PM, wrote: >>> >>> >>> >>> On Thu, 27 Sep 2012, Marcos Douglas wrote: >>> >>

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
piler directive or something like that. I agree that is much simpler... but why nobody, in another language, do the same? Does not worth it? I do not know. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 12:26 PM, Graeme Geldenhuys wrote: > On 2012-09-27 15:48, Marcos Douglas wrote: >> problem, IMHO, is that I can't choose when we talk about local >> variables. > > Just like there is a coding style (not language rule) that classes start > w

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 12:08 PM, wrote: > > > On Thu, 27 Sep 2012, Marcos Douglas wrote: > >>> >>> Yes, it's always possible. In practice, I haven't seen this happen a >>> single >>> time in the 10+ years that the compiler has had th

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 11:53 AM, wrote: > > > On Thu, 27 Sep 2012, Marcos Douglas wrote: > >> >> But this is a programmer's choice, ie, using or not the Self. The >> problem, IMHO, is that I can't choose when we talk about local >> variables. >

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 11:33 AM, Jonas Maebe wrote: > > On 27 Sep 2012, at 16:18, Marcos Douglas wrote: > >> On Thu, Sep 27, 2012 at 11:01 AM, Jonas Maebe >> wrote: >>> >>> >>> Yes, but the human brain is very good at confusing such thing

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 11:30 AM, wrote: > > > On Thu, 27 Sep 2012, Marcos Douglas wrote: > >> On Thu, Sep 27, 2012 at 11:01 AM, Jonas Maebe >> wrote: >>> >>> >>> On 27 Sep 2012, at 15:51, Marcos Douglas wrote: >>> >>> What

Re: [fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
On Thu, Sep 27, 2012 at 11:01 AM, Jonas Maebe wrote: > > On 27 Sep 2012, at 15:51, Marcos Douglas wrote: > > What is the advantages to the compiler return the error bellow? > ERROR: unit1.pas(31,3) Error: Duplicate identifier "FooVar" > > Why the compiler do not r

[fpc-devel] Local variable names and colision with attributes/properties names

2012-09-27 Thread Marcos Douglas
e declarations } public FooVar: string; StdCtrls: string; end; var Form1: TForm1; implementation {$R *.lfm} procedure TForm1.Button1Click(Sender: TObject); var FooVar: string; begin FooVar := 'foo'; StdCtrls := 'Is that right?&#x

Re: [fpc-devel] Unicode resource strings

2012-08-21 Thread Marcos Douglas
od solution for TStrings. Whatever string type is >> chosen, some programs will suffer. > > Why will some suffer? Simply default UnicodeString to the correct > encoding on each platform, and no performance issues and no > unnecessary conversions will occur. Make much s

Re: [fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
On Wed, Jul 25, 2012 at 12:39 PM, Sven Barth wrote: > Am 25.07.2012 17:19, schrieb Marcos Douglas: > >> On Wed, Jul 25, 2012 at 11:55 AM, Sven Barth >> wrote: >>> >>> Am 25.07.2012 16:48, schrieb Marcos Douglas: >>> >>>> O

Re: [fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
On Wed, Jul 25, 2012 at 11:55 AM, Sven Barth wrote: > Am 25.07.2012 16:48, schrieb Marcos Douglas: > >> On Wed, Jul 25, 2012 at 11:39 AM, Sven Barth >> wrote: >>> >>> >>> Am 25.07.2012 16:10, schrieb Marcos Douglas: >>> >&

Re: [fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
On Wed, Jul 25, 2012 at 11:39 AM, Sven Barth wrote: > > Am 25.07.2012 16:10, schrieb Marcos Douglas: > >> On Wed, Jul 25, 2012 at 10:42 AM, Nico Erfurth wrote: >>> >>> On 25.07.12 15:35, Marcos Douglas wrote: >>>> >>>> On Wed

Re: [fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
On Wed, Jul 25, 2012 at 10:42 AM, Nico Erfurth wrote: > On 25.07.12 15:35, Marcos Douglas wrote: >> On Wed, Jul 25, 2012 at 10:25 AM, Marco van de Voort wrote: >>> In our previous episode, Marcos Douglas said: >>>> >>>> I would like to report s

Re: [fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
On Wed, Jul 25, 2012 at 10:42 AM, Jonas Maebe wrote: > > > Marcos Douglas wrote on Wed, 25 Jul 2012: > >> On Wed, Jul 25, 2012 at 10:25 AM, Marco van de Voort >> wrote: >>>> >>>> [...] >>>> make[6]: Entering directory `W:/md/dev/freep

Re: [fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
On Wed, Jul 25, 2012 at 10:25 AM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> >> I would like to report some errors when I tried to compile the FPC >> 2.7.1 at revision 21969 (I am using Windows). > > First step in bootstrapping probl

[fpc-devel] FPC 2.7.1 - variant.inc(82, 10) Error: Illegal type conversion: "Text" to "TextRec"

2012-07-25 Thread Marcos Douglas
" text.inc(199,34) Fatal: There were 50 errors compiling module, stopping Fatal: Compilation aborted make[7]: *** [system.ppu] Error 1 make[7]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/rtl/win32' make[6]: *** [win32_all] Error 2 make[6]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/rtl' make[5]: *** [rtl] Error 2 make[5]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/compiler' make[4]: *** [next] Error 2 make[4]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/compiler' make[3]: *** [ppc1.exe] Error 2 make[3]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/compiler' make[2]: *** [cycle] Error 2 make[2]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1/compiler' make[1]: *** [compiler_cycle] Error 2 make[1]: Leaving directory `W:/md/dev/freepascal/compiler/2.7.1' make: *** [build-stamp.i386-win32] Error 2 -- Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-02 Thread Marcos Douglas
On Wed, May 2, 2012 at 11:47 AM, Martin Schreiber wrote: > On 02.05.2012 15:41, Marcos Douglas wrote: >> >>> This last one is bad advice, this code will break as soon as they switch to >>> 2.6.3. Which, presumably, eventually they will. >>> >>> If

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-02 Thread Marcos Douglas
arnings and will continue to work with 2.6.3. Well, that was the way I chose. > Or you can simply ignore the warnings, which is by far the easiest option. > I can't believe people are making such fuss over a couple of warnings. > > Michael. The problem, for me, would be break the sources in production. If GetBookmarkData and FreeBookmark will continue work so, that is what I will use. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-01 Thread Marcos Douglas
> have "bookmarkty" in order to avoid the warning. FPC and Lazarus probably > can't do the same because of Delphi compatibility. Suggestion: > remove "deprecated" from TBookmarkStr in fixes_2_6. +1 Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-05-01 Thread Marcos Douglas
uld be useful. > > Criticism is easy. Coming up with solutions obviously much less so. > > Michael. IMHO, I think they want to back how was before, ie., using TBookmarkStr without 'deprecated'... while the core do not have a solution, first in trunk. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Interface: Method resolution clauses

2012-04-30 Thread Marcos Douglas
On Mon, Apr 30, 2012 at 4:10 PM, Marco van de Voort wrote: > In our previous episode, Marco van de Voort said: >> > end; >> >> No. See bug #21064. > > This involves generics, so is something different. Yeah, I saw... This confused the two of us.

Re: [fpc-devel] Interface: Method resolution clauses

2012-04-30 Thread Marcos Douglas
On Mon, Apr 30, 2012 at 3:53 PM, Sergei Gorelkin wrote: > 30.04.2012 22:42, Marcos Douglas пишет: > >> >> FPC 2.6.1 or 2.7.1 (trunk)? >> I'm using 2.6.1 and I can't compile it. >> > I was testing with trunk, but I don't remember significant change

Re: [fpc-devel] Interface: Method resolution clauses

2012-04-30 Thread Marcos Douglas
On Mon, Apr 30, 2012 at 3:23 PM, Sergei Gorelkin wrote: > 30.04.2012 20:38, Marcos Douglas пишет: >> >> >> Simple. Does not compile. >> > The following compiles successfully (in Win32): > > -- cut > {$mod

Re: [fpc-devel] Interface: Method resolution clauses

2012-04-30 Thread Marcos Douglas
On Mon, Apr 30, 2012 at 12:25 PM, Sergei Gorelkin wrote: > 30.04.2012 19:06, Marcos Douglas пишет: > >> Hi, >> >> Can I, using FPC trunk, do this sintaxe? >> >> type >>   TMemoryManager = class(TInterfacedObject, IMalloc, IErrorInfo) >>      func

Re: [fpc-devel] Interface: Method resolution clauses

2012-04-30 Thread Marcos Douglas
On Mon, Apr 30, 2012 at 12:13 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> Can I, using FPC trunk, do this sintaxe? >> >> type >>   TMemoryManager = class(TInterfacedObject, IMalloc, IErrorInfo) >>      function IMalloc.Al

[fpc-devel] Interface: Method resolution clauses

2012-04-30 Thread Marcos Douglas
c's Alloc and Free methods onto TMemoryManager's Allocate and Deallocate methods. A method resolution clause cannot alter a mapping introduced by an ancestor class." Thanks, Marcos Douglas ___ fpc-devel maillist - fp

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-04-30 Thread Marcos Douglas
On Mon, Apr 30, 2012 at 1:56 AM, Martin Schreiber wrote: > On Thursday 26 April 2012 06:58:01 Martin Schreiber wrote: >> On Wednesday 25 April 2012 21:43:30 Marco van de Voort wrote: >> > In our previous episode, Marcos Douglas said: >> > > > Done, trunk r

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-04-27 Thread Marcos Douglas
7;t expect breakage! Breakages belong in TRUNK > only. +1 IMHO even new things and improvements would be welcome, but not break the old things. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: RE : RE : RE : [fpc-devel] Breaking change in FPC 2.6.1

2012-04-25 Thread Marcos Douglas
fected were tdataset and bufdataset (conversion > between Pbufbookmark and tbytes). What about 2.6.1, will change in a few days too? Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-04-24 Thread Marcos Douglas
On Tue, Apr 24, 2012 at 6:18 PM, Marco van de Voort wrote: > In our previous episode, Marcos Douglas said: >> > every assignment of TDataset.Bookmark to a variable. >> > As intended too? >> >> This broke the ZEOS 6.6.6-stable and 7.0.0-alpha too (patch to zeos 7 &

Re: [fpc-devel] Breaking change in FPC 2.6.1

2012-04-24 Thread Marcos Douglas
nagement so > probably TDataset.FreeBookmark() must be called in a try finally block for > every assignment of TDataset.Bookmark to a variable. > As intended too? This broke the ZEOS 6.6.6-stable and 7.0.0-alpha too (patch to zeos 7 in attachment for somebody want). Marcos Douglas zeos7.0.0-alpha__fp

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-22 Thread Marcos Douglas
>>> I will do so later today. >> >> Michael, >> I updated patch for fcl-db test suite. See: >> http://bugs.freepascal.org/view.php?id=17303 >> Would you be so glad and will you apply them please ? > > > Done, rev. 20572. > > Sorry for the delay. &g

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-21 Thread Marcos Douglas
On Wed, Mar 21, 2012 at 5:01 AM, wrote: > > > On Tue, 20 Mar 2012, Marcos Douglas wrote: > >> On Tue, Mar 20, 2012 at 8:12 PM,   wrote: >>> >>> >>> >>> On Tue, 20 Mar 2012, Marcos Douglas wrote: >>> >&g

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-21 Thread Marcos Douglas
e with other installation of MSSQL. My mistake, sorry. If I find some problems I can post in bugtracker or still early to do this? -- Michael, sorry for your time. Marcos Douglas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] TMSSQLConnection - sqlDB component for accessing MS SQL Server

2012-03-20 Thread Marcos Douglas
On Tue, Mar 20, 2012 at 8:12 PM, wrote: > > > On Tue, 20 Mar 2012, Marcos Douglas wrote: > >> On Tue, Mar 20, 2012 at 6:59 PM, Michael Van Canneyt >> wrote: >>> >>> >>> >>> On Tue, 20 Mar 2012, Marcos Douglas wrote: >>> >&

  1   2   3   >