Thanks!
; file.
>
> Anything I need to do? I'd prefer to keep this entire file
> uncommented so I don't always have to hand-edit the results of
> htod.
I find it quite surprising that it doesn't like wchar_t, but depending on
what version of C it's converting to, maybe wchar_t isn't officially part
lways have to hand-edit the results of
htod.
cheers
On 2017-08-28 20:24, 12345swordy wrote:
What compiler are you referring to? Clang? LDC? DMD?
The D compilers, DMD and LDC.
--
/Jacob Carlborg
On Monday, 28 August 2017 at 06:30:53 UTC, Jacob Carlborg wrote:
On 2017-08-26 23:32, 12345swordy wrote:
I am not asking that, I'm asking regarding the project mention
earlier.
Adding support for C++ to DStep is a long term goal, yes. But
the compiler still needs to support those features.
On 2017-08-26 23:32, 12345swordy wrote:
I am not asking that, I'm asking regarding the project mention earlier.
Adding support for C++ to DStep is a long term goal, yes. But the
compiler still needs to support those features. Unless DStep is going to
generate C wrappers, which I would like
On 2017-08-25 16:58, Walter Bright wrote:
Right, but please show me an example of how that might be used.
I've never suggested that this should be implemented.
--
/Jacob Carlborg
On Thursday, 24 August 2017 at 19:08:04 UTC, Jacob Carlborg wrote:
On 2017-08-24 17:02, 12345swordy wrote:
They have plans to add c++ support?
D can already link with C++, but not all features are
supported. Like lambdas, for example, are not supported.
I am not asking that, I'm asking
On 8/25/2017 1:31 AM, Jacob Carlborg wrote:
On 2017-08-25 02:43, Walter Bright wrote:
I have no idea how that would even work. Since lambdas are nested functions,
how would one write one in D and have it nested inside C++ code?
I thought C++ lambdas were implemented as structs with the call
On 2017-08-25 13:07, Atila Neves wrote:
Correct, the lambda syntax is just syntatic sugar. But how would D
support that? The name of the compiler-generated struct is known only to
the compiler, there'd be no way to link to the code.
I don't know. I haven't suggested this should be
On Friday, 25 August 2017 at 08:31:57 UTC, Jacob Carlborg wrote:
On 2017-08-25 02:43, Walter Bright wrote:
I have no idea how that would even work. Since lambdas are
nested functions, how would one write one in D and have it
nested inside C++ code?
I thought C++ lambdas were implemented as
On 2017-08-25 02:43, Walter Bright wrote:
I have no idea how that would even work. Since lambdas are nested
functions, how would one write one in D and have it nested inside C++ code?
I thought C++ lambdas were implemented as structs with the call operator
overloaded.
--
/Jacob Carlborg
On Friday, 25 August 2017 at 00:43:56 UTC, Walter Bright wrote:
On 8/24/2017 12:08 PM, Jacob Carlborg wrote:
D can already link with C++, but not all features are
supported. Like lambdas, for example, are not supported.
I have no idea how that would even work. Since lambdas are
nested
On 8/24/2017 12:08 PM, Jacob Carlborg wrote:
D can already link with C++, but not all features are supported. Like lambdas,
for example, are not supported.
I have no idea how that would even work. Since lambdas are nested functions, how
would one write one in D and have it nested inside C++
On 8/24/2017 12:53 AM, lobo wrote:
D had 1 ICE that was a known
issue with core team member comments on the bug report.
What's the bugzilla issue number?
On 2017-08-24 17:02, 12345swordy wrote:
They have plans to add c++ support?
D can already link with C++, but not all features are supported. Like
lambdas, for example, are not supported.
--
/Jacob Carlborg
On Thursday, 24 August 2017 at 08:11:52 UTC, Jacob Carlborg wrote:
On 2017-08-23 15:25, 12345swordy wrote:
"Doesn't translate C++ at all"
That's very disappointing. IMO, it should at least aim for the
c++ 11 feature via using clang.
Pull requests are welcome :). BTW, to my knowledge D
On 2017-08-23 15:25, 12345swordy wrote:
"Doesn't translate C++ at all"
That's very disappointing. IMO, it should at least aim for the c++ 11
feature via using clang.
Pull requests are welcome :). BTW, to my knowledge D doesn't support any
features added after C++98/03.
--
/Jacob Carlborg
On Thursday, 24 August 2017 at 05:56:02 UTC, Timothee Cour wrote:
On Wed, Aug 23, 2017 at 10:38 PM, lobo via Digitalmars-d
wrote:
On Thursday, 24 August 2017 at 01:51:25 UTC, Timothee Cour
wrote:
[...]
nim:
it supports both targetting C++ (as well as C or
On Wed, Aug 23, 2017 at 10:38 PM, lobo via Digitalmars-d
wrote:
> On Thursday, 24 August 2017 at 01:51:25 UTC, Timothee Cour wrote:
>>>
>>> [...]
>>
>>
>> nim:
>> it supports both targetting C++ (as well as C or javascript) and also
>> calling C++ via foreign function
On Thursday, 24 August 2017 at 01:51:25 UTC, Timothee Cour wrote:
[...]
nim:
it supports both targetting C++ (as well as C or javascript)
and also
calling C++ via foreign function interface, eg here are some
links:
https://github.com/nim-lang/Nim/wiki/Playing-with-CPP--VTABLE-from-Nim
> Do you know another language or tool that can call C++ natively?
nim:
it supports both targetting C++ (as well as C or javascript) and also
calling C++ via foreign function interface, eg here are some links:
https://github.com/nim-lang/Nim/wiki/Playing-with-CPP--VTABLE-from-Nim
On Wednesday, 23 August 2017 at 13:25:20 UTC, 12345swordy wrote:
On Tuesday, 22 August 2017 at 19:55:53 UTC, Jacob Carlborg
wrote:
On 2017-08-22 19:47, 12345swordy wrote:
Use Clang frontend?
DStep [1] is doing that. It handles both GCC and Microsoft
extensions.
[1]
On Wednesday, 23 August 2017 at 14:12:55 UTC, jmh530 wrote:
On Wednesday, 23 August 2017 at 13:25:20 UTC, 12345swordy wrote:
"Doesn't translate C++ at all"
That's very disappointing. IMO, it should at least aim for the
c++ 11 feature via using clang.
Very disappointing?
Yes I find it
On Wednesday, 23 August 2017 at 13:25:20 UTC, 12345swordy wrote:
"Doesn't translate C++ at all"
That's very disappointing. IMO, it should at least aim for the
c++ 11 feature via using clang.
Very disappointing? It's not trivial to call C++ from another
language.
On Tuesday, 22 August 2017 at 19:55:53 UTC, Jacob Carlborg wrote:
On 2017-08-22 19:47, 12345swordy wrote:
Use Clang frontend?
DStep [1] is doing that. It handles both GCC and Microsoft
extensions.
[1] https://github.com/jacob-carlborg/dstep
"Doesn't translate C++ at all"
That's very
On Tuesday, 22 August 2017 at 22:50:46 UTC, Walter Bright wrote:
On 8/22/2017 2:50 PM, Steven Schveighoffer wrote:
But it is generating D code, no?
Sure. And the C subset of D has been very stable, too.
Used the tool 2 years ago. Worked like a charm.
On 8/22/2017 2:50 PM, Steven Schveighoffer wrote:
On 8/22/17 5:17 PM, Walter Bright wrote:
On 8/22/2017 11:23 AM, Steven Schveighoffer wrote:
I downloaded it. The exe is last modified April 28, 2010, corresponding with
DMD version 2.044.
This can't possibly produce valid D headers for
On 8/22/17 5:17 PM, Walter Bright wrote:
On 8/22/2017 11:23 AM, Steven Schveighoffer wrote:
I downloaded it. The exe is last modified April 28, 2010,
corresponding with DMD version 2.044.
This can't possibly produce valid D headers for 2.075.1. I think it
should be either updated or removed
On 8/22/2017 11:23 AM, Steven Schveighoffer wrote:
I downloaded it. The exe is last modified April 28, 2010, corresponding with DMD
version 2.044.
This can't possibly produce valid D headers for 2.075.1. I think it should be
either updated or removed from the web site.
It doesn't correspond
On 2017-08-22 19:47, 12345swordy wrote:
Use Clang frontend?
DStep [1] is doing that. It handles both GCC and Microsoft extensions.
[1] https://github.com/jacob-carlborg/dstep
--
/Jacob Carlborg
On 8/22/17 1:15 PM, Walter Bright wrote:
On 8/22/2017 8:14 AM, Jonathan Shamir wrote:
https://dlang.org/htod.html
I click download and get an exe!
And in the bugs section:
No linux version.
I'll start with the productive part. If anyone can point me out to the
sources of htod I would love
On Tuesday, 22 August 2017 at 17:15:27 UTC, Walter Bright wrote:
You're right about htod, and it's on me. It's built out of the
DMC++ front end. I haven't gotten around yet to releasing it as
open source.
We can discuss possible ways of implementing htod.
Instead, I'd rather discuss how we
On Tuesday, 22 August 2017 at 17:15:27 UTC, Walter Bright wrote:
On 8/22/2017 8:14 AM, Jonathan Shamir wrote:
[...]
You're right about htod, and it's on me. It's built out of the
DMC++ front end. I haven't gotten around yet to releasing it as
open source.
[...]
Use Clang frontend?
On 8/22/2017 8:14 AM, Jonathan Shamir wrote:
https://dlang.org/htod.html
I click download and get an exe!
And in the bugs section:
No linux version.
I'll start with the productive part. If anyone can point me out to the sources
of htod I would love to compile for linux + osx. Any task seems
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote:
On Friday, 21 April 2017 at 10:54:26 UTC, سليمان السهمي
(Soulaïman Sahmi) wrote:
Is there an htod for linux or an equivalent that works with
Cpp, there is dstep but it does not support Cpp.
From the very bottom of the htod doc page
You may also want to try dstep - I just recently used that tool
for the first time, and it worked really well (required a bit of
tweaking of the source and result files though, but nothing
major).
=> https://github.com/jacob-carlborg/dstep
I think we need a dub package for the cpp standard library. If
somebody has managed to get that together, it would be a great
step towards better cpp interoperability.
On Friday, 21 April 2017 at 12:10:04 UTC, Mike Parker wrote:
The only thing I'm aware of is Binderoo [1]. According to the
currently skinny wiki, binderoo_util [2] can be used to
generate bindings if you're invested in using the whole set up.
Ethan's scheduled to give a talk about it on Day 2
On Friday, 21 April 2017 at 12:04:02 UTC, سليمان السهمي
(Soulaïman Sahmi) wrote:
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote:
"No Linux version."
That's a shame, any alternative with cpp support? It's quite
painful to "port" something ubiquitous like std::string by
hand.
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote:
"No Linux version."
That's a shame, any alternative with cpp support? It's quite
painful to "port" something ubiquitous like std::string by hand.
base_string.h is ugly, is arcane, even a parser would have a hard
time with it.
On Friday, 21 April 2017 at 10:54:26 UTC, سليمان السهمي
(Soulaïman Sahmi) wrote:
Is there an htod for linux or an equivalent that works with
Cpp, there is dstep but it does not support Cpp.
From the very bottom of the htod doc page [1]:
"No Linux version."
https://dlang.org/htod.html
Is there an htod for linux or an equivalent that works with Cpp,
there is dstep but it does not support Cpp.
https://issues.dlang.org/show_bug.cgi?id=6349
Andrej Mitrovic changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=6239
Andrej Mitrovic changed:
What|Removed |Added
Status|NEW |RESOLVED
On Thursday, 16 June 2016 at 19:04:38 UTC, bachmeier wrote:
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:
How people use it on Linux, if htod is required to import C
libraries and windows only?f
Just to clarify, so as to prevent confusion by someone that
randomly stumbles across
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:
How people use it on Linux, if htod is required to import C
libraries and windows only?f
Just to clarify, so as to prevent confusion by someone that
randomly stumbles across this post, you do not need htod, dstep,
or any other tool
On Thursday, 16 June 2016 at 12:39:00 UTC, Dicebot wrote:
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:
How people use it on Linux, if htod is required to import C
libraries and windows only?f
People don't use htod. https://github.com/jacob-carlborg/dstep
is best what one can
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:
How people use it on Linux, if htod is required to import C
libraries and windows only?f
People don't use htod. https://github.com/jacob-carlborg/dstep is
best what one can be for plain binding generation.
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote:
How people use it on Linux, if htod is required to import C
libraries and windows only?f
we don't.
How people use it on Linux, if htod is required to import C
libraries and windows only?f
for existing C library so I was
trying to use htod for that.
The library includes various C header files ... causing htod to
fail
Yeah, htod often requires preparing the files your trying to
convert. Often removing macro's and the like. Its a manual
process, and it can get dirty.
On 2016-01-22 01:31, Dibyendu Majumdar wrote:
I tried using htod but got errors as it could not handle the std C
header files (Visual C++). How do people work around this?
You could try DStep [1]. Although I'm not entirely sure if it works on
Windows. It uses libclang, so if Clang can handle
On Friday, 22 January 2016 at 00:31:01 UTC, Dibyendu Majumdar
wrote:
I tried using htod but got errors as it could not handle the
std C header files (Visual C++).
And probably never will. D doesn't have a preprocessor so it's
kind of hard to automate the process.
How do people work around
On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote:
Counter question: What's so bad about the D std library ?
I am trying to create bindings for existing C library so I was
trying to use htod for that.
I tried using htod but got errors as it could not handle the std
C header files (Visual C++). How do people work around this?
Thanks and Regards
Dibyendu
On Friday, 22 January 2016 at 01:03:09 UTC, Dibyendu Majumdar
wrote:
On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote:
Counter question: What's so bad about the D std library ?
I am trying to create bindings for existing C library so I was
trying to use htod for that.
The library
for existing C library so I was
trying to use htod for that.
The library includes various C header files ... causing htod to
fail
I see. I didn't quite understand your question correctly. I
thought you were trying to port over the std c library.
Maybe you can give an example ?
https://issues.dlang.org/show_bug.cgi?id=4876
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Version|unspecified |D2
--
https://issues.dlang.org/show_bug.cgi?id=4876
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|general |websites
https://issues.dlang.org/show_bug.cgi?id=6239
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|htod|tools
--
https://issues.dlang.org/show_bug.cgi?id=6237
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|htod|tools
--
https://issues.dlang.org/show_bug.cgi?id=6248
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|htod|tools
--
https://issues.dlang.org/show_bug.cgi?id=6349
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|htod|tools
--
https://issues.dlang.org/show_bug.cgi?id=6249
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|htod|tools
--
https://issues.dlang.org/show_bug.cgi?id=6292
Andrei Alexandrescu and...@erdani.com changed:
What|Removed |Added
Component|htod|tools
--
On 2013-12-07 18:53, Andre wrote:
If DStep is the prefered solution would it be possible to also
provide a pre compiled binary for windows? This would make DStep
more user friendly.
= Just trying to find out what is needed to compile DStep on a
windows machine, whether I need mambo/tango/s.th.
If DStep is the prefered solution would it be possible to also
provide a pre compiled binary for windows? This would make DStep
more user friendly.
= Just trying to find out what is needed to compile DStep on a
windows machine, whether I need mambo/tango/s.th. else and
praying libclang is
Hi,
HTOD is not able to translate a #define if the
value is in brackets like here:
#define SQL_STILL_EXECUTING 2
#define SQL_ERROR (-1)
#define SQL_INVALID_HANDLE (-2)
#define SQL_NEED_DATA 99
Hi,
HTOD is not able to translate a #define if the
value is in brackets like here:
#define SQL_STILL_EXECUTING 2
#define SQL_ERROR (-1)
#define SQL_INVALID_HANDLE (-2)
#define SQL_NEED_DATA 99
strange, sent once but posted 2 times on server
On Friday, 6 December 2013 at 15:04:58 UTC, Andre wrote:
Hi,
HTOD is not able to translate a #define if the
value is in brackets like here:
#define SQL_STILL_EXECUTING 2
#define SQL_ERROR (-1
On Friday, 6 December 2013 at 15:04:18 UTC, Andre wrote:
Hi,
HTOD is not able to translate a #define if the
value is in brackets like here:
#define SQL_STILL_EXECUTING 2
#define SQL_ERROR (-1)
#define SQL_INVALID_HANDLE (-2
To be honest I'd love htod to be completely removed from
dlang.org (and possibly replaced with dstep) as it does more harm
than good.
On 2013-12-06 16:14, Dicebot wrote:
htod is old and unsupported. I recommend dstep
(https://github.com/jacob-carlborg/dstep) which is based on libclang and
thus naturally up to date with current C state.
DStep doesn't currently support any preprocessor handling, except for
some simple
On Friday, 6 December 2013 at 17:02:18 UTC, Jacob Carlborg wrote:
On 2013-12-06 16:14, Dicebot wrote:
htod is old and unsupported. I recommend dstep
(https://github.com/jacob-carlborg/dstep) which is based on
libclang and
thus naturally up to date with current C state.
DStep doesn't
On 2013-12-06 18:10, Dicebot wrote:
Does it simply ignores preprocessor tokens or actually makes
substitutions (but there is no D-ification)? I thought it is the latter.
It does substitutions. I guess using libclang would be just like
compiling with Clang but stop the process somewhere after
On 2013-12-06 18:13, Jacob Carlborg wrote:
It does substitutions. I guess using libclang would be just like
compiling with Clang but stop the process somewhere after the AST is
created and before the code generating phase has started.
This also has the unfortunate consequences that you can
On 12/6/13, Jacob Carlborg d...@me.com wrote:
On 2013-12-06 18:13, Jacob Carlborg wrote:
It does substitutions. I guess using libclang would be just like
compiling with Clang but stop the process somewhere after the AST is
created and before the code generating phase has started.
This also
On 12/6/13 7:15 AM, Dicebot wrote:
To be honest I'd love htod to be completely removed from
dlang.org (and possibly replaced with dstep) as it does more harm
than good.
I agree. Please send a pull request.
Thanks,
Andrei
On 2013-12-06 19:35, Andrej Mitrovic wrote:
I guess libtooling (http://clang.llvm.org/docs/LibTooling.html) would
be a better fit for a codegenerator, but it's a C++ library.
I don't see what this would give me. libclang already handles command
line parsing. DStep handles, in addition to
On 2013-12-06 19:35, Andrej Mitrovic wrote:
I guess libtooling (http://clang.llvm.org/docs/LibTooling.html) would
be a better fit for a codegenerator, but it's a C++ library.
What would be better is to use the Clang C++ libraries since they
already provide all the functionality needed.
Is there any chance of htod being improved or ported to other
platforms?
http://dlang.org/htod.html
Is this tool still capable or is it a legacy tool now?
On Thursday, 14 November 2013 at 15:22:28 UTC, Gary Willoughby
wrote:
Is there any chance of htod being improved or ported to other
platforms?
http://dlang.org/htod.html
Is this tool still capable or is it a legacy tool now?
It does not reliably work even on Windows. Legacy.
Use dstep
On Thursday, 14 November 2013 at 15:25:37 UTC, Dicebot wrote:
On Thursday, 14 November 2013 at 15:22:28 UTC, Gary Willoughby
wrote:
Is there any chance of htod being improved or ported to other
platforms?
http://dlang.org/htod.html
Is this tool still capable or is it a legacy tool now
On 2013-05-28 04:32, Lionello Lunesu wrote:
Walter,
Any chance we can get the source of htod? If found it a very useful
little utility, although there are many issues with it.
VisualD also include a similar utility to convert header files to D, but
it is more tuned to Windows header files
On 5/28/13 12:11, Walter Bright wrote:
On 5/27/2013 8:35 PM, Lionello Lunesu wrote:
On 5/28/13 11:08, Diggory wrote:
On Tuesday, 28 May 2013 at 02:32:24 UTC, Lionello Lunesu wrote:
Walter,
Any chance we can get the source of htod? If found it a very useful
little utility, although
Walter,
Any chance we can get the source of htod? If found it a very useful
little utility, although there are many issues with it.
VisualD also include a similar utility to convert header files to D, but
it is more tuned to Windows header files. Perhaps we can combine the two
into a new
On Tuesday, 28 May 2013 at 02:32:24 UTC, Lionello Lunesu wrote:
Walter,
Any chance we can get the source of htod? If found it a very
useful little utility, although there are many issues with it.
VisualD also include a similar utility to convert header files
to D, but it is more tuned
On 5/28/13 11:08, Diggory wrote:
On Tuesday, 28 May 2013 at 02:32:24 UTC, Lionello Lunesu wrote:
Walter,
Any chance we can get the source of htod? If found it a very useful
little utility, although there are many issues with it.
VisualD also include a similar utility to convert header files
On 5/27/2013 8:35 PM, Lionello Lunesu wrote:
On 5/28/13 11:08, Diggory wrote:
On Tuesday, 28 May 2013 at 02:32:24 UTC, Lionello Lunesu wrote:
Walter,
Any chance we can get the source of htod? If found it a very useful
little utility, although there are many issues with it.
VisualD also
http://d.puremagic.com/issues/show_bug.cgi?id=6248
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6249
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=6292
Andrej Mitrovic andrej.mitrov...@gmail.com changed:
What|Removed |Added
Status|NEW |RESOLVED
I have this file tmp.h:
const char *getvalue(const char *key);
I run htod tmp.h and I've got the output
---
/* Converted to D from tmp.h by htod */
module tmp;
//C const char *getvalue(const char *key);
extern (C):
char * getvalue(char *key
Why is 'const' removed?
cause htod sucks.
D1 didn't have const and htod wasn't updated for ages.
trass3r, I wouldn't say that it sucks. It has really helped a lot in
porting some simple header files. It goes terribly bad on the more complex
though.
Thanks Trass3r.
On Tue, Mar 6, 2012, at 05:50 PM, Trass3r wrote:
Why is 'const' removed?
cause htod sucks.
D1 didn't have const and htod wasn't updated for ages.
Am 06.03.2012, 20:13 Uhr, schrieb maarten van damme
maartenvd1...@gmail.com:
I wouldn't say that it sucks. It has really helped a lot in
porting some simple header files. It goes terribly bad on the more
complex though.
Sadly, using regular expressions is much more efficient.
At least
On 3/6/12, Trass3r u...@known.com wrote:
Sadly, using regular expressions is much more efficient.
Do you have some script that does that and sorta works? I've tried
others (e.g. dstep but couldn't get LLVM to compile unfortunately..).
Thank you very much, that solved my issue.
C:\dirhtod -I c:\d\dm\include ocilib.h
Fatal error: unable to open input file 'stdlib.h'
You have an extra space there. Use:
htod -IC:\d\dm\include ocilib.h
That will work.
1 - 100 of 244 matches
Mail list logo