Re: Can D interface with Free Pascal?

2016-02-08 Thread Basile B. via Digitalmars-d-learn
On Thursday, 28 January 2016 at 04:26:26 UTC, Taylor Hillegeist wrote: Just curious... I had a thought that perhaps since Objective C was a replacement for Pascal on the mac. that they might have the same interface. but I'm not savvy enough with fpc to figure out how to try it. As said in

Re: Can D interface with Free Pascal?

2016-01-29 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 30 January 2016 at 03:43:59 UTC, Taylor Hillegeist wrote: Working through a simple example. I tried the cdecl option but for some reason i can compile but when i run my Gethello it cant find the shared library in the same folder? taylor@taylor-NE510:~/Projects/PASCAL$ nm

Re: Can D interface with Free Pascal?

2016-01-29 Thread Taylor Hillegeist via Digitalmars-d-learn
On Saturday, 30 January 2016 at 04:49:39 UTC, Taylor Hillegeist wrote: On Saturday, 30 January 2016 at 04:35:29 UTC, Taylor Hillegeist wrote: On Saturday, 30 January 2016 at 04:11:07 UTC, Mike Parker wrote: [...] Now I'm wishing that was the problem. Interestingly enough when i link to a C

Re: Can D interface with Free Pascal?

2016-01-29 Thread Taylor Hillegeist via Digitalmars-d-learn
On Saturday, 30 January 2016 at 04:11:07 UTC, Mike Parker wrote: On Saturday, 30 January 2016 at 03:43:59 UTC, Taylor Hillegeist wrote: Working through a simple example. I tried the cdecl option but for some reason i can compile but when i run my Gethello it cant find the shared library in

Re: Can D interface with Free Pascal?

2016-01-29 Thread Taylor Hillegeist via Digitalmars-d-learn
On Saturday, 30 January 2016 at 04:35:29 UTC, Taylor Hillegeist wrote: On Saturday, 30 January 2016 at 04:11:07 UTC, Mike Parker wrote: [...] Now I'm wishing that was the problem. Interestingly enough when i link to a C shared library it works... but also it isn't show in the needed shared

Re: Can D interface with Free Pascal?

2016-01-29 Thread Taylor Hillegeist via Digitalmars-d-learn
On Friday, 29 January 2016 at 01:47:11 UTC, Mike Parker wrote: On Thursday, 28 January 2016 at 19:49:22 UTC, Taylor Hillegeist wrote: On Thursday, 28 January 2016 at 19:33:22 UTC, bearophile wrote: FreeSlave: On Thursday, 28 January 2016 at 08:15:38 UTC, FreeSlave wrote: Not directly. You can

Re: Can D interface with Free Pascal?

2016-01-28 Thread bearophile via Digitalmars-d-learn
FreeSlave: On Thursday, 28 January 2016 at 08:15:38 UTC, FreeSlave wrote: Not directly. You can declare cdecl function on Free Pascal side and call it as extern(C). What about extern(Pascal)? https://dlang.org/spec/attribute.html#linkage Bye, bearophile

Re: Can D interface with Free Pascal?

2016-01-28 Thread Taylor Hillegeist via Digitalmars-d-learn
On Thursday, 28 January 2016 at 19:33:22 UTC, bearophile wrote: FreeSlave: On Thursday, 28 January 2016 at 08:15:38 UTC, FreeSlave wrote: Not directly. You can declare cdecl function on Free Pascal side and call it as extern(C). What about extern(Pascal)?

Re: Can D interface with Free Pascal?

2016-01-28 Thread FreeSlave via Digitalmars-d-learn
On Thursday, 28 January 2016 at 04:26:26 UTC, Taylor Hillegeist wrote: Just curious... I had a thought that perhaps since Objective C was a replacement for Pascal on the mac. that they might have the same interface. but I'm not savvy enough with fpc to figure out how to try it. Not directly.

Re: Can D interface with Free Pascal?

2016-01-28 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 28 January 2016 at 19:49:22 UTC, Taylor Hillegeist wrote: On Thursday, 28 January 2016 at 19:33:22 UTC, bearophile wrote: FreeSlave: On Thursday, 28 January 2016 at 08:15:38 UTC, FreeSlave wrote: Not directly. You can declare cdecl function on Free Pascal side and call it as

Can D interface with Free Pascal?

2016-01-27 Thread Taylor Hillegeist via Digitalmars-d-learn
Just curious... I had a thought that perhaps since Objective C was a replacement for Pascal on the mac. that they might have the same interface. but I'm not savvy enough with fpc to figure out how to try it.