[fpc-devel] Public interface for Record Init Table

2016-12-15 Thread Maciej Izak
Hi,

new patch for RTTI is ready (initially discussed in "RTTI module and
"IsManaged" critical problem"), anyway I think is needed some review...

http://bugs.freepascal.org/view.php?id=31123

The TRecInitData IMO is better naming than TRecInitTableData because is
more opened for management operators (or for some other data) in the
future. Also field name RecInitInfo looks better than RecInitTable.
RecInitInfo is nice complement part for RecInitData property.

-- 
Best regards,
Maciej Izak
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] GetTypeKind for Generics

2016-12-15 Thread Maciej Izak
2016-12-15 17:13 GMT+01:00 Sven Barth :

> There is already a bug report for this and a few other functions (don't
> know the bug ID right now however).


http://bugs.freepascal.org/view.php?id=28357

-- 
Best regards,
Maciej Izak
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] GetTypeKind for Generics

2016-12-15 Thread Sven Barth
Am 15.12.2016 15:18 schrieb :
>
> I wonder if this can be implemented in FPC? It is explained here how it
works.
> http://delphisorcery.blogspot.si/2014/10/new-language-feature-in-xe7.html

There is already a bug report for this and a few other functions (don't
know the bug ID right now however).

Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] RTTI module and "IsManaged" critical problem

2016-12-15 Thread Sven Barth
Am 15.12.2016 09:53 schrieb "Maciej Izak" :
>
>
> 2016-12-14 20:06 GMT+01:00 Sven Barth :
>>
>> I found the "problem": write_rtti_ref() will always write an indirect
>> reference (which is by design), so I adjusted the code that it will
>> really write a direct one. Bye, bye, one level of indirection ;)
>
>
> ^_^ but...
>
> I found another problem. We have small typo for
RTTIRecordRttiInfoToInitInfo. Please merge ASAP
http://bugs.freepascal.org/view.php?id=31118 otherwise InitializeArray
FinalizeArray will stay totally broken >.<

Done :)

Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] GetTypeKind for Generics

2016-12-15 Thread afagagtea
I wonder if this can be implemented in FPC? It is explained here how it works.
http://delphisorcery.blogspot.si/2014/10/new-language-feature-in-xe7.html
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] LLVM

2016-12-15 Thread Michael Schnell

On 15.12.2016 08:35, Jonas Maebe wrote:

Thanks a lot for the detailed explanation !
-Michael
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] LLVM

2016-12-15 Thread Karoly Balogh (Charlie/SGR)
Hi,

On Wed, 14 Dec 2016, Michael Schnell wrote:

> Of course another (better) option would be a fpc directly creating
> WebAssembly, but I understand that this will take a lot of time.

There is some interest in a WebAssembly backend, but yes it will take a
lot of time. No spoilers for now, and nothing to see, move along.

There is also some work underway, to compile Pascal code to JS, but that's
a separate project, not implemented as an FPC backend.

Charlie
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] RTTI module and "IsManaged" critical problem

2016-12-15 Thread Maciej Izak
2016-12-14 20:06 GMT+01:00 Sven Barth :

> I found the "problem": write_rtti_ref() will always write an indirect
> reference (which is by design), so I adjusted the code that it will
> really write a direct one. Bye, bye, one level of indirection ;)
>

^_^ but...

I found another problem. We have small typo for
RTTIRecordRttiInfoToInitInfo. Please merge ASAP
http://bugs.freepascal.org/view.php?id=31118 otherwise InitializeArray
FinalizeArray will stay totally broken >.<

-- 
Best regards,
Maciej Izak
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel