Re: Embedding interface to PMCs

2003-09-11 Thread Josh Wilmes
If the pdd is amended, let's not forget to update the check_source script- 
for that matter, if there are any other items that should be added 
(perhaps some specific checks for the embedding headers), let me know- 
I'll be happy to add them.

--Josh


At 18:57 on 09/11/2003 BST, Nicholas Clark [EMAIL PROTECTED] wrote:

 On Thu, Sep 11, 2003 at 09:30:29PM +0300, Vladimir Lipskiy wrote:
 
  to document the idea of Juergen Bommels to include the
  
  extern C {
  
 
 I take it you meant the full game:
 
 #ifdef __cplusplus
 extern C {
 #endif
 
  specification () in each header in pdd7_codingstd, no body had replied),
  but maybe Parrot isn't going to have support for C++ embedding applications
.
 
 It will. perl 5 does. Therefore the current situation is a bug.
 
 Nicholas Clark 




Embedding interface to PMCs

2003-09-11 Thread Arthur Bergman
Hi,

Is there any documentation, or code I can read to figure out how use 
PMCs in embedded mode? I tried to just include parrot/parrot.h in sv.c 
but that results in a million (or so ;) errors, so using parrot/embed 
would be nice. (it looks like it isn't finished yet, so it is more a 
question of what plans exists?)

Arthur



Re: Embedding interface to PMCs

2003-09-11 Thread Vladimir Lipskiy

- Original Message -
From: Arthur Bergman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 7:14 PM
Subject: Embedding interface to PMCs


 Hi,

 Is there any documentation, or code I can read to figure out how use
 PMCs in embedded mode? I tried to just include parrot/parrot.h in sv.c
 but that results in a million (or so ;) errors ...

Ha-ha-ha. The same thing. To be more exactly, I get like a half of million
errors(anyway it's still less than you get), when I try to embed parrot in a
c++ application. The reason of that is that the parrot headers don't contain
the C linkage specification and there is an awful lot of typedef struct a *a
declarations that don't please C++ compilers. I ain't sure (when I proposed
to document the idea of Juergen Bommels to include the

extern C {

specification () in each header in pdd7_codingstd, no body had replied),
but maybe Parrot isn't going to have support for C++ embedding applications.







Re: Embedding interface to PMCs

2003-09-11 Thread Nicholas Clark
On Thu, Sep 11, 2003 at 09:30:29PM +0300, Vladimir Lipskiy wrote:

 to document the idea of Juergen Bommels to include the
 
 extern C {
 

I take it you meant the full game:

#ifdef __cplusplus
extern C {
#endif

 specification () in each header in pdd7_codingstd, no body had replied),
 but maybe Parrot isn't going to have support for C++ embedding applications.

It will. perl 5 does. Therefore the current situation is a bug.

Nicholas Clark