On 4/30/18 2:47 PM, biocyberman wrote:
Hellow D community.
I am attending Dconf 2018 and giving a talk there on May 4. Link:
https://dconf.org/2018/talks/le.html. It will be very interesting to
talk about the outcome of the following challenges. If we can't have at
least 3 solutions by three
Hellow D community.
I am attending Dconf 2018 and giving a talk there on May 4. Link:
https://dconf.org/2018/talks/le.html. It will be very interesting
to talk about the outcome of the following challenges. If we
can't have at least 3 solutions by three individuals by 10:00
GMT+2 May 4, I wil
On Monday, 30 April 2018 at 01:07:35 UTC, NewUser wrote:
Hi,
How do I pass a d string to a c++ std::string?
NewUser
There's https://github.com/dlang/druntime/pull/1316 (an attempt
at making C++ standard library)
On Monday, 30 April 2018 at 10:48:40 UTC, Jonathan M Davis wrote:
On Monday, April 30, 2018 01:07:35 NewUser via
Digitalmars-d-learn wrote:
Hi,
How do I pass a d string to a c++ std::string?
The most straightforward way would be to create a C or C++
function which accepts const char* and siz
On Monday, 30 April 2018 at 12:35:06 UTC, Timoses wrote:
Hey,
reading through https://dlang.org/articles/const-faq.html and
experimenting a bit:
```
immutable int i = 3;
const(int)* p = &i;
int* q = cast(int*)p;
assert(q == p && p == &i);
writeln(i); // 3
*q = 1;
Hey,
reading through https://dlang.org/articles/const-faq.html and
experimenting a bit:
```
immutable int i = 3;
const(int)* p = &i;
int* q = cast(int*)p;
assert(q == p && p == &i);
writeln(i); // 3
*q = 1; // Why does this have no effect at all? No error
no not
On Monday, 30 April 2018 at 10:57:51 UTC, Jonathan M Davis wrote:
On Monday, April 30, 2018 10:36:52 bauss via
Digitalmars-d-learn wrote:
On Saturday, 28 April 2018 at 04:56:26 UTC, lempiji wrote:
> On Friday, 27 April 2018 at 02:59:16 UTC, Dr.No wrote:
>> In C# you can have a readonly member as
On Monday, April 30, 2018 10:36:52 bauss via Digitalmars-d-learn wrote:
> On Saturday, 28 April 2018 at 04:56:26 UTC, lempiji wrote:
> > On Friday, 27 April 2018 at 02:59:16 UTC, Dr.No wrote:
> >> In C# you can have a readonly member assignable either at
> >> declaration or constructor time, like t
On Monday, April 30, 2018 01:07:35 NewUser via Digitalmars-d-learn wrote:
> Hi,
>
> How do I pass a d string to a c++ std::string?
The most straightforward way would be to create a C or C++ function which
accepts const char* and size_t and then creates the std::string, in which
case you pass it ar
On Saturday, 28 April 2018 at 04:56:26 UTC, lempiji wrote:
On Friday, 27 April 2018 at 02:59:16 UTC, Dr.No wrote:
In C# you can have a readonly member assignable either at
declaration or constructor time, like this:
class C
{
readonly myClass mc;
this()
{
mc = new myClass();
}
On Monday, 30 April 2018 at 01:07:35 UTC, NewUser wrote:
Hi,
How do I pass a d string to a c++ std::string?
NewUser
There is no trivial way to do this as far as I'm aware, mostly
due to C++ mangling issues in DMD. You can try calypso [0] or dpp
[1], which might work. You can also see this P
11 matches
Mail list logo