Re: [fpc-devel] Re: TBits problem

2013-11-06 Thread Tomas Hajny
On Wed, November 6, 2013 08:45, Andrea Mauri wrote: > any hint? > should I have to open a bug report? Yes, I think so (although I have no clue regarding compatibility with Delphi, etc.) - looking at the implementation of OrBits (and also XorBits), the calculation which bits should be used is diffe

Re: [fpc-devel] 0025241: [Discussion] Reimplementing of floating-point <-> ASCII conversions

2013-11-06 Thread Jonas Maebe
On 03 Nov 2013, at 07:40, Max Nazhalov wrote: Attached final patch that fixes compilation for JVM target (mantis #25267). It combines previous two + fix of the runtime error during application startup. Now an example http://svn.freepascal.org/svn/fpc/branches/jvmbackend/tests/test/jvm/tran

Re: [fpc-devel] Enum values and scope

2013-11-06 Thread Sven Barth
Am 06.11.2013 15:06, schrieb Martin: The below compiles. (2.6.2) It shows that the value identifier of an enum, can be reached via a lot of different pathes. Just want to be sure they are all intentional? unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TEnum = (e1,

Re: [fpc-devel] Re: TBits problem

2013-11-06 Thread Andrea Mauri
If you send a minimal test-case and actual results you might have a better chance at getting a reply... Below a sample test project. I create a TBits (b1) and then I set 16 bits as 1. Then I create 2 TBits (b2 and b3) with size 164, I use .OrBits to OR b1 with b2 and b3. I expect that b2

[fpc-devel] Enum values and scope

2013-11-06 Thread Martin
The below compiles. (2.6.2) It shows that the value identifier of an enum, can be reached via a lot of different pathes. Just want to be sure they are all intentional? unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type TEnum = (e1,e2,e3); var en1: TEnum; implementat

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