Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2014-01

CPPClass

20 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Den

Hi all (but most likely Sven ;) ),

I've noticed the CPPClass no longer works and stops with: internalerror(200611034) -- From [compiler/ncgrtti.pas]

It's a case when generating the Object Definition RTTI ASM-Data, and doesn't handle odt_cppclass.. (Hence the internal error). Any way you could update the CPPClass to a working condition? I'd really like to use it as I would rather write a Pascal CPPClass and interface with a Library rather than making my own bridge library and interfacing with that.

Let me know!

Sincerely,

Dennis

Reply by email

Dmitry Boyarintsev
to Den
Den wrote
I'd really like to use it as I would rather write a Pascal CPPClass and interface with a Library rather than making my own bridge library and interfacing with that.

Shouldn't there be 2 kind of CPPClass variants? One for GNU another for MSVC.
I'd hate to mention that there should be more (up to the number of C++ compilers), but these two are the most commonly used these days.

thanks,
Dmitry

Reply by email

Sven Barth
to Den: Hi all (but most likely Sven ;) ), I've noticed the CPPClass no longer works and stops…
Den wrote 10 lines
Hi all (but most likely Sven ;) ), I've noticed the CPPClass no longer works and stops with: internalerror(200611034) -- From [compiler/ncgrtti.pas] It's a case when generating the Object Definition RTTI ASM-Data, and doesn't handle odt_cppclass.. (Hence the internal error). Any way you could update the CPPClass to a working condition? I'd really like to use it as I would rather write a Pascal CPPClass and interface with a Library rather than making my own bridge library and interfacing with that.

Currently it only works with static or at least non-virtual methods anyway. Also instantiation or destruction of C++ classes will not work yet alone exceptions. So I don't know whether such a fix would help you much.

Maybe once my Master Thesis is done I'll find more time to work on this again.

Regards,
Sven

Reply by email

Sven Barth
to Dmitry Boyarintsev: Shouldn't there be 2 kind of CPPClass variants? One for GNU another for MSVC. I'd hate to…
Dmitry Boyarintsev wrote 11 lines
On Sat, Jan 18, 2014 at 12:19 AM, Den < > wrote: I'd really like to use it as I would rather write a Pascal CPPClass and interface with a Library rather than making my own bridge library and interfacing with that. Shouldn't there be 2 kind of CPPClass variants? One for GNU another for MSVC. I'd hate to mention that there should be more (up to the number of C++ compilers), but these two are the most commonly used these days.

Currently only GCC (and CLang as both are compatible) is supported. Later on this might be extended by some possiblity to specify the type of C++ runtime to use (whether one program will be able to use both MVSC and GCC C++ classes at once is up to be seen).

Regards,
Sven

Reply by email

Den
to Sven Barth: Currently it only works with static or at least non-virtual methods anyway. Also…

I would definitely be interested in it. I am done a project in about 3 months, so it would be *cough* (AWESOME) if you could by then *cough*! ;)

- Dennis

Sven Barth wrote 27 lines
On 18.01.2014 06:19, Den wrote: > Hi all (but most likely Sven ;) ), > > I've noticed the CPPClass no longer works and stops with: > internalerror(200611034) -- From [compiler/ncgrtti.pas] > > It's a case when generating the Object Definition RTTI ASM-Data, > and doesn't handle odt_cppclass.. (Hence the internal error). Any way > you could update the CPPClass to a working condition? I'd really like to > use it as I would rather write a Pascal CPPClass and interface with a > Library rather than making my own bridge library and interfacing with > that. Currently it only works with static or at least non-virtual methods anyway. Also instantiation or destruction of C++ classes will not work yet alone exceptions. So I don't know whether such a fix would help you much. Maybe once my Master Thesis is done I'll find more time to work on this again. Regards, Sven _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Sven Barth
to Den
"Den" wrote
I would definitely be interested in it. I am done a project in about

3 months, so it would be *cough* (AWESOME) if you could by then *cough*! ;)

I won't promise anything, cause I have quite a few FPC projects, that are currently put on ice due to.ky thesis:
- generic functions and methods (and of course bug fixes)
- dynamic packages
- extension of helpers
- m68k revival
- NativeNT improvement
- Windows RT ?

The list just does not end... :/

Regards,
Sven

Reply by email

Maciej Izak
to Sven Barth

2014/1/22 Sven Barth

Show quoted text 12 lines
I won't promise anything, cause I have quite a few FPC projects, that are currently put on ice due to.ky thesis: - generic functions and methods (and of course bug fixes) - dynamic packages - extension of helpers - m68k revival - NativeNT improvement - Windows RT ? The list just does not end... :/

You forgotten about "Invoke" function in RTTI.pas ;)

Regards,
HNB

Reply by email

Sven Barth
to Maciej Izak
Maciej Izak wrote 18 lines
2014/1/22 Sven Barth < > I won't promise anything, cause I have quite a few FPC projects, that are currently put on ice due to.ky <http://to.ky> thesis: - generic functions and methods (and of course bug fixes) - dynamic packages - extension of helpers - m68k revival - NativeNT improvement - Windows RT ? The list just does not end... :/ You forgotten about "Invoke" function in RTTI.pas ;)

Right you are ^^
See what I meant with the never ending list? :P

Regards,
Sven

Reply by email

Marco van de Voort
to Sven Barth

In our previous episode, Sven Barth said:

Show quoted text 8 lines
> - Windows RT ? > > The list just does not end... :/ > > > You forgotten about "Invoke" function in RTTI.pas ;) Right you are ^^ See what I meant with the never ending list? :P

Fixing the implements keyword (#8951)? Anonymous methods?

( : -) )

Reply by email

Sven Barth
to Marco van de Voort
Marco van de Voort wrote 12 lines
In our previous episode, Sven Barth said: >> - Windows RT ? >> >> The list just does not end... :/ >> >> >> You forgotten about "Invoke" function in RTTI.pas ;) > Right you are ^^ > See what I meant with the never ending list? :P Fixing the implements keyword (#8951)? Anonymous methods? ( : -) )

*sigh* See? :P

Regards,
Sven

Reply by email

Den
to Sven Barth

haha, well Sven, if some of my patches were to get accepted *cough* I'd help out a lot more.
I am just kinda tired of seeing such a huge difference in local modifications and the actual source. I would be more inclined to help you on some of these in about 3-4 months if I could see them actually getting accepted lol

- Dennis

Sven Barth wrote 20 lines
Am 22.01.2014 10:48, schrieb Marco van de Voort: > In our previous episode, Sven Barth said: >>> - Windows RT ? >>> >>> The list just does not end... :/ >>> >>> >>> You forgotten about "Invoke" function in RTTI.pas ;) >> Right you are ^^ >> See what I meant with the never ending list? :P > Fixing the implements keyword (#8951)? Anonymous methods? > > ( : -) ) *sigh* See? :P Regards, Sven _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Sven Barth
to Den: haha, well Sven, if some of my patches were to get accepted *cough* I'd help out a lot…
Den wrote 6 lines
haha, well Sven, if some of my patches were to get accepted *cough* I'd help out a lot more. I am just kinda tired of seeing such a huge difference in local modifications and the actual source. I would be more inclined to help you on some of these in about 3-4 months if I could see them actually getting accepted lol

Besides Florian's mail: as long as the patches adhere to the compiler's coding style and the changes are agreed upon by us developers there are normally no problems with patches.

Regards,
Sven

Reply by email

Den
to Florian Klämpfl: What patches? Are they available somewhere?

Yep!

$INCLUDESTRINGFILE -- http://bugs.freepascal.org/view.php?id=25536 Apache24 Patch -- http://bugs.freepascal.org/view.php?id=25534 EGL/OpenGLES20 Split -- http://bugs.freepascal.org/view.php?id=25535

Although I have an updated version of the Apache24 which supports Config Options better and a few more macros.

I also have a small fix for 'WinSock2' inclusion which makes it actually get included in the Win32/Win64 FPMake (looks like it was planned but never added).

- Dennis

Florian Klämpfl wrote 7 lines
Am 22.01.2014 19:31, schrieb Den: > haha, well Sven, if some of my patches were to get accepted *cough* What patches? Are they available somewhere? _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Mark Morgan Lloyd
to Den

Den wrote:

Please excuse the fact that I have reordered the message to conform to the bottom-posting convention of this mailing list.

Show quoted text 17 lines
On 14-01-22 12:35 PM, Florian Klämpfl wrote: > Am 22.01.2014 19:31, schrieb Den: >> haha, well Sven, if some of my patches were to get accepted *cough* > What patches? Are they available somewhere? Yep! $INCLUDESTRINGFILE -- http://bugs.freepascal.org/view.php?id=25536 Apache24 Patch -- http://bugs.freepascal.org/view.php?id=25534 EGL/OpenGLES20 Split -- http://bugs.freepascal.org/view.php?id=25535 Although I have an updated version of the Apache24 which supports Config Options better and a few more macros. I also have a small fix for 'WinSock2' inclusion which makes it actually get included in the Win32/Win64 FPMake (looks like it was planned but never added).

I think there's a big difference between adding or enhancing packages and tinkering with the core language. I suspect that your $INCLUDESTRINGFILE won't get accepted since it's considered too "Perl like", but here would be a good place to give some usage examples and to argue its merits.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Sven Barth
to Den: Yep! $INCLUDESTRINGFILE -- http://bugs.freepascal.org/view.php?id=25536 Apache24 Patch --…
Den wrote

I commented there just now.

Already assigned to Michael.

If noone beats me to it I'll take a look after my Master's thesis is done.

Although I have an updated version of the Apache24 which supports Config Options better and a few more macros.

There is still time to update your patch :P

I also have a small fix for 'WinSock2' inclusion which makes it actually get included in the Win32/Win64 FPMake (looks like it was planned but never added).

I already fixed that yesterday.

Regards,
Sven

Reply by email

Den
to Sven Barth

I noticed you got the WinSock2 one when it conflicted with a file, I just chose to use the SVN copy as it was pretty much the same.

I'd like to update my Apach24 patch but it seems I can't seem to log-in to the Free Pascal bugs area.. It says my account is either blocked, disabled, or I entered the username/password incorrectly. I've been logging in the same way for many many years lol .. can someone check the error out for me? That would be most excellent. :)

And I saw your comment on the $INCLUDESTRINGFILE! Yes, of course! I would love to include a test case and such. Thank you for looking at it Sven. I was also thinking about the maximum size issue.. Should we use a constant for the Size Restraint? Or a parameter? (Or even another directive?)

- Dennis

Sven Barth wrote 24 lines
Am 23.01.2014 00:26, schrieb Den: > Yep! > > $INCLUDESTRINGFILE -- http://bugs.freepascal.org/view.php?id=25536 I commented there just now. > Apache24 Patch -- http://bugs.freepascal.org/view.php?id=25534 Already assigned to Michael. > EGL/OpenGLES20 Split -- http://bugs.freepascal.org/view.php?id=25535 If noone beats me to it I'll take a look after my Master's thesis is done. > > Although I have an updated version of the Apache24 which supports > Config Options better and a few more macros. There is still time to update your patch :P > I also have a small fix for 'WinSock2' inclusion which makes it > actually get included in the Win32/Win64 FPMake (looks like it was > planned but never added). I already fixed that yesterday. Regards, Sven _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Sven Barth
to Den: I noticed you got the WinSock2 one when it conflicted with a file, I just chose to use…
Den wrote 5 lines
I'd like to update my Apach24 patch but it seems I can't seem to log-in to the Free Pascal bugs area.. It says my account is either blocked, disabled, or I entered the username/password incorrectly. I've been logging in the same way for many many years lol .. can someone check the error out for me? That would be most excellent. :)

Could be related that we switched off the community site.

@Florian, @Jonas: Does anyone of you know what Dennis could do?

Show quoted text 5 lines
And I saw your comment on the $INCLUDESTRINGFILE! Yes, of course! I would love to include a test case and such. Thank you for looking at it Sven. I was also thinking about the maximum size issue.. Should we use a constant for the Size Restraint? Or a parameter? (Or even another directive?)

I haven't thought that much yet.

Regards,
Sven

Reply by email

Den
to Sven Barth

I've managed to log back in again, and all is well! I implemented the new INCLUDESTRINGFILE directive, and test case and etc.. The full message is in the bug report. ^_^

- Dennis Fehr

Sven Barth wrote 24 lines
On 23.01.2014 19:30, Den wrote: > I'd like to update my Apach24 patch but it seems I can't seem to > log-in to the Free Pascal bugs area.. It says my account is either > blocked, disabled, or I entered the username/password incorrectly. I've > been logging in the same way for many many years lol .. can someone > check the error out for me? That would be most excellent. :) Could be related that we switched off the community site. @Florian, @Jonas: Does anyone of you know what Dennis could do? > And I saw your comment on the $INCLUDESTRINGFILE! Yes, of course! I > would love to include a test case and such. Thank you for looking at it > Sven. I was also thinking about the maximum size issue.. Should we use > a constant for the Size Restraint? Or a parameter? (Or even another > directive?) I haven't thought that much yet. Regards, Sven _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email