www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Where I download Digital Mars C Preprocessor sppn.exe?

reply Marcone <marcone email.com> writes:
Where I download Digital Mars C Preprocessor sppn.exe? I need it 
to use ImportC
Apr 02 2022
next sibling parent reply Marcone <marcone email.com> writes:
ImportC is deprecated as everything in D is deprecated and 
abandoned. No link works, every download link is broken as no one 
cares. All D code is always full of bugs and needs to be 
corrected by the user before trying to run it, in order to 
realize that it wasted time.

https://dlang.org/spec/importc.html
Apr 02 2022
next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
What on earth are you talking about.

ImportC is highly experimental and was announced far too soon.

If you look at the last release a very large number of the bug fixes 
were for ImportC specifically.

https://dlang.org/changelog/2.099.0.html#bugfix-list
Apr 02 2022
prev sibling next sibling parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 4/2/22 16:40, Marcone wrote:
 ImportC is deprecated as everything in D is deprecated and abandoned.
You're off a little: April Fool's was yesterday. :o) Ali
Apr 02 2022
prev sibling parent forkit <forkit gmail.com> writes:
On Saturday, 2 April 2022 at 23:40:39 UTC, Marcone wrote:
 ImportC is deprecated as everything in D is deprecated and 
 abandoned. No link works, every download link is broken as no 
 one cares. All D code is always full of bugs and needs to be 
 corrected by the user before trying to run it, in order to 
 realize that it wasted time.

 https://dlang.org/spec/importc.html
ImportC is an interesting, and possibly useful feature..to a select few, but ALL will have to carry it. IMO...ImportC will be D's biggest mistake.
Apr 03 2022
prev sibling next sibling parent reply user1234 <user1234 12.de> writes:
On Saturday, 2 April 2022 at 21:57:02 UTC, Marcone wrote:
 Where I download Digital Mars C Preprocessor sppn.exe? I need 
 it to use ImportC
it's part of the [DMC] toolchain. [DMC]: http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm857c.zip
Apr 03 2022
parent Tejas <notrealemail gmail.com> writes:
On Sunday, 3 April 2022 at 08:37:45 UTC, user1234 wrote:
 On Saturday, 2 April 2022 at 21:57:02 UTC, Marcone wrote:
 Where I download Digital Mars C Preprocessor sppn.exe? I need 
 it to use ImportC
it's part of the [DMC] toolchain. [DMC]: http://ftp.digitalmars.com/Digital_Mars_C++/Patch/dm857c.zip
Guys I think Ali is right... The post was meant as an April fool's joke... It was pretty badly mistimed though, at the time of his posting, it was 3rd April in my place, and undoubtedly 2nd everywhere else
Apr 03 2022
prev sibling parent reply Nick Treleaven <nick geany.org> writes:
On Saturday, 2 April 2022 at 21:57:02 UTC, Marcone wrote:
 Where I download Digital Mars C Preprocessor sppn.exe? I need 
 it to use ImportC
Found this thread by googling `dlang sppn.exe`. For the record, it can be obtained from sppn.zip here: http://ftp.digitalmars.com/ I didn't have it for some reason even though latest dmc is installed.
Jan 23 2023
parent reply Nick Treleaven <nick geany.org> writes:
On Monday, 23 January 2023 at 17:15:30 UTC, Nick Treleaven wrote:
 On Saturday, 2 April 2022 at 21:57:02 UTC, Marcone wrote:
 Where I download Digital Mars C Preprocessor sppn.exe? I need 
 it to use ImportC
Found this thread by googling `dlang sppn.exe`. For the record, it can be obtained from sppn.zip here: http://ftp.digitalmars.com/ I didn't have it for some reason even though latest dmc is installed.
I then got some weird errors building druntime: std::array not supported by DMC std::basic_string_view not supported by DMC I figured that dmc was not correctly installed (not sure why). So I downloaded dmc.zip which fixed it.
Jan 23 2023
parent reply Alain De Vos <devosalain ymail.com> writes:
Mixing D with C or C++ or Python is looking for problems.
Better write something in D.
And write something in C/C++/Python.
And have some form of communication between both.
Jan 23 2023
parent "H. S. Teoh" <hsteoh qfbox.info> writes:
On Mon, Jan 23, 2023 at 08:06:28PM +0000, Alain De Vos via Digitalmars-d-learn
wrote:
 Mixing D with C or C++ or Python is looking for problems.
 Better write something in D.
 And write something in C/C++/Python.
 And have some form of communication between both.
I don't know about Python, but I regularly write D code that interacts with external C libraries and have not encountered any major problems. You just have to put `extern(C)` in the right places and make sure you link the right objects / libraries, and you're good to go. So far I haven't actually tried integrating non-trivial C++ libraries with D yet, but I expect it will be similar unless you're dealing with C++ templates (which are not compatible with D templates) or multiple inheritance, which D doesn't support. T -- Right now I'm having amnesia and deja vu at the same time. I think I've forgotten this before.
Jan 23 2023