Re: [fpc-devel] Encoded AnsiString

2014-01-07 Thread Craig Peterson
, a locale-based one at that. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] Encoded AnsiString

2014-01-07 Thread Craig Peterson
reference counting, no with, etc. Apparently the developers they're chasing after are too stupid to know how to deal with more than one string type. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http

Re: [fpc-devel] Comparison FPC 2.6.2 - Delphi 7

2013-03-02 Thread Craig Peterson
of them did the inside too because his tools require him to paint both sides of the walls. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Please include gmp.dll in Win32 distribution of FPC 2.6.2 and later

2012-12-03 Thread Craig Peterson
ago because I started maintaining and fixing it. If you'd done that rather than badmouthing it and trying to reimplement it from scratch it would be even further along than it is. -- Craig Peterson Scooter Software Abbrevia Project Admin ___ fpc

Re: [fpc-devel] nestedprocvar questions

2012-07-31 Thread Craig Peterson
this? Is the behavior described above (the $modeswitch without is nested) intentional behavior we can rely on, or an unexpected side effect? Can it be added to {$MODE DELPHI} to increase Delphi compatibility? Regards, Craig Peterson Scooter Software

Re: [fpc-devel] Class field reordering

2012-07-13 Thread Craig Peterson
On Jul 13, 2012, at 6:44 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: Hi, I've implemented an optimization that reorders the instance fields of Delphi-style classes (and only of Delphi-style classes) to minimise memory gaps caused by alignment differences and odd sizes. The effect

Re: [fpc-devel] Changing Windows API A routines in SysUtils to W in Windows NT

2012-02-08 Thread Craig Peterson
, so it is possible, but it would overly complicate the RTL code for an increasingly irrelevant platform. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Re: Changing Windows API A routines in SysUtils to W in Windows NT

2012-02-06 Thread Craig Peterson
. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] bug report 20473: Please add a directive to define string=utf8string

2011-10-13 Thread Craig Peterson
that correspond to the system's locale (so, 1252 for US/UK versions). It's a weird gotcha, and means it's not safe to rely on AnsiString to communicate with system functions anymore. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel

Re: [fpc-devel] bug report 20473: Please add a directive to define string=utf8string

2011-10-13 Thread Craig Peterson
is 1252, not 65001. -- Craig Peterson Scooter Software ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Re: Illegal type conversion: enumeration type to TObject

2008-07-18 Thread Craig Peterson
Schatzl Thomas wrote: This will never compile directly on 64 bit platforms (x64/ppc64) because afaik sizeof(enum) always sizeof(tobject) there. The original poster didn't mention his platform afaik. Sorry, Sean was out of the office yesterday. Boian hit it exactly; we're doing this cast

Re: [fpc-devel] Re: Illegal type conversion: enumeration typeto TObject

2008-07-18 Thread Craig Peterson
Пётр Косаревский wrote: 1. Why not use dummy class like class tmyenum(tobject) e: myenumtype; end;? (extra typing is something like (objects[i] as tmyenum).e instead of typecasting, but you can [have to] Free it: it's normal object) Why would that be better than a simple typecast?

Re: [fpc-devel] Re: Illegal type conversion: enumeration typeto TObject

2008-07-18 Thread Craig Peterson
Thanks Thomas, and the turnaround was definitely faster than I'm used to with Borland. :) However, all other objections against typecasting still apply, i.e. it's imho not too clean to typecast and breaks the -CR functionality and has maybe other issues. We're still trying to get the whole

re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Craig Peterson
reason why this can't be handled automatically in Delphi mode? In the example (and every case where it's an issue in our code), the callback is a procedure and doesn't return anything, so Callback := Proc isn't ambiguous. Regards, Craig Peterson Scooter Software

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Craig Peterson
not the only developers that appreciate that fact. The objfpc mode can be as strict as you want, but it seems like the Delphi mode should work with all of the constructs that Delphi itself allows. Am I wrong about its intended behavior? Regards, Craig Peterson Scooter Software

Re: [fpc-devel] Incompatible Types: got untyped expected procedure variable type of procedure(Pointer);Register

2008-07-17 Thread Craig Peterson
Yes but this has got nothing to do with original poster's problem :-). Sean (the original poster) is my coworker, so his problem and mine are one and the same. ;-) I'm having a little trouble parsing your responses though, so to clarify: In Delphi, the following code works: procedure

[fpc-devel] Internal error in Delphi mode

2005-02-11 Thread Craig Peterson
causes it to fail with an internal error 200405023. Also compiles if I first assign c.IntArray[0] to a variable and then ask for it's length. I'm compiling using fpc 1.9.6, 2005/01/03, for i386, on Windows 2000. Regards, Craig Peterson program project1; {$mode delphi} uses types; type