[fpc-devel] Internal error 2011090501

2011-11-06 Thread Leonardo M . Ramé
I get Internal error 2011090501 when trying to specialize this class:

  TBlob = class

  private
    FxMin: Integer;
    FxMax: Integer;
    FyMin: Integer;
    FyMax: Integer;
    FMass: Integer;
  public
    constructor create( xMin, xMax, yMin, yMax, Mass: Integer);
    property xMin: Integer read FxMin;
    property yMin: Integer read FyMin;
    property xMax: Integer read FxMax;
    property yMax: Integer read FyMax;
    property Mass: Integer read FMass;
  end;

  { TMammoBoundaries }
  TBlobList = specialize TFPGObjectListTBlob;

I'm using {$mode objfpc} and unit fgl. Any hint?.
 
Leonardo M. Ramé
http://leonardorame.blogspot.com
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Updated FPC JVM snapshot

2011-11-06 Thread Jonas Maebe
Hi,

I've put a new FPC JVM snapshot online (corresponding to svn r19598 of the 
jvmbackend branch), linked from http://wiki.freepascal.org/FPC_JVM

Changes since the previous snapshot include:
* the compiler will now implicitly convert between all Pascal string types and 
JLString (java.lang.String)
* most, if not all, previously missing string helpers have been added to the 
system unit for all string types (insert, delete, pos, ...)
* several fillchar overloads for use on arrays have been added to the system 
unit
* generics now work
* the compiler will now generate a constructor that takes an (automatically 
generated) interface for all (also automatically generated) classes that are 
used to implement procedure of object procedure variables. This allows them 
to be used much more easily and naturally from Java code
* support for pchar, including typecasting an ansistring to pchar and indexing 
it like on native platforms (with read/write capabilities). Note that this does 
not work for unicodestring and pwidechar due to unicodestring mapping to 
java.lang.String, which is both opaque and immutable
* exceptions raised in invocations of virtual class methods and procedure 
variables are now properly propagated to the caller
* {$VARPARACOPYOUTCHECK+/-} / -Cv switch to enable checking var-parameters (and 
to a limited extent also out-parameters) on the JVM target for changes to the 
value passed as var-parameter during the function call (because they are 
handled via copy-in/copy-out, this may indicate unexpected bahviour later on).

Note that this code has not been synchronized with FPC svn trunk recently. Even 
though it's version 2.7.1, it dates from before the cpstrnew merge. I'm waiting 
for those changes to completely settle down before updating the JVM backend 
branch with them.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel