Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Marcos Douglas
On Thu, Aug 11, 2016 at 4:29 PM, Jonas Maebe wrote: > On 11/08/16 21:17, Marcos Douglas wrote: >> >> If FPC use the same names, Classes and methods, how we know if a patch >> was or not a copy? > > > We ask in case of doubt. Understood, just for the record. ___

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Jonas Maebe
On 11/08/16 21:17, Marcos Douglas wrote: If FPC use the same names, Classes and methods, how we know if a patch was or not a copy? We ask in case of doubt. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Marcos Douglas
On Thu, Aug 11, 2016 at 3:33 PM, Jonas Maebe wrote: > On 11/08/16 20:25, silvioprog wrote: >> >> But now I have a question: many Free Pascal programmers are Delphi >> programmers too, having code that can be compiled in both compilers, and >> sometimes they need to debug deeply, entering into the

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread silvioprog
On Thu, Aug 11, 2016 at 3:33 PM, Jonas Maebe wrote: > On 11/08/16 20:25, silvioprog wrote: > >> But now I have a question: many Free Pascal programmers are Delphi >> programmers too, having code that can be compiled in both compilers, and >> sometimes they need to debug deeply, entering into the

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Jonas Maebe
On 11/08/16 20:25, silvioprog wrote: But now I have a question: many Free Pascal programmers are Delphi programmers too, having code that can be compiled in both compilers, and sometimes they need to debug deeply, entering into the compiler code and looking at it, so, can't a programmer contribut

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread silvioprog
On Thu, Aug 11, 2016 at 12:54 PM, Jonas Maebe wrote: > > Yes, but we cannot integrate any code that has been written by you based > on the Delphi code you looked at, because the license does not allow you to > rewrite that code into something that is licensed under the GPLv2 or later. > While in t

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Jonas Maebe
On 11/08/16 17:06, silvioprog wrote: Now I understand what you meant. When you asked me if I looked at Delphi's code I thought you were suggesting that I had written the patch based on it to make a kind of copy, if so, I haven't. But if the question is about looking at Delphi code, yes, I do, I b

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread silvioprog
On Thu, Aug 11, 2016 at 11:07 AM, Jonas Maebe wrote: > On 11/08/16 15:38, silvioprog wrote: > >> No, I didn't. Sorry if I made some misunderstood, I look at Delphi >> source just for check why it doesn't raise memory leak, I'm fully >> against piracy! I look at other sources from another language

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Jonas Maebe
On 11/08/16 15:38, silvioprog wrote: No, I didn't. Sorry if I made some misunderstood, I look at Delphi source just for check why it doesn't raise memory leak, I'm fully against piracy! I look at other sources from another languages too, like DotGNU Encoding, but just for analysis. The proposed p

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread silvioprog
On Thu, Aug 11, 2016 at 10:21 AM, Jonas Maebe wrote: > On 11/08/16 15:17, silvioprog wrote: > >> I've opened a new issue sending a possible >> patch: http://bugs.freepascal.org/view.php?id=30462 >> . >> > > Did you look at the Delphi source code for T

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Jonas Maebe
On 11/08/16 15:17, silvioprog wrote: I've opened a new issue sending a possible patch: http://bugs.freepascal.org/view.php?id=30462 . Did you look at the Delphi source code for TEncoding? Jonas ___ fpc-

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread silvioprog
On Thu, Aug 11, 2016 at 5:02 AM, Jonas Maebe wrote: > Bart wrote: > > On 8/11/16, silvioprog wrote: > > > >> ... so I decided to research how Delphi > >> implements it, because I can't get any error on it, and I've seen it > >> implements a "lock-free initialization" technique > >>

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Jonas Maebe
Bart wrote: > On 8/11/16, silvioprog wrote: > >> ... so I decided to research how Delphi >> implements it, because I can't get any error on it, and I've seen it >> implements a "lock-free initialization" technique >> using the XE's >> AtomicCmpExchang

Re: [fpc-pascal] Are the TEncoding singletons thread-safe?

2016-08-11 Thread Bart
On 8/11/16, silvioprog wrote: > ... so I decided to research how Delphi > implements it, because I can't get any error on it, and I've seen it > implements a "lock-free initialization" technique > using the XE's > AtomicCmpExchange() function before r