On Friday, 13 February 2015 at 19:03:10 UTC, Jonathan Marler
wrote:
This question comes from wanting to be able to throw an
exception in code that is @nogc.
https://dlang.org/changelog/2.079.0.html#dip1008
```d
void main() @nogc
{
throw new Exception("I'm @nogc now");
}
```
On Friday, 12 January 2018 at 18:51:31 UTC, Basile B. wrote:
On Friday, 12 January 2018 at 18:50:10 UTC, Basile B. wrote:
On Friday, 12 January 2018 at 17:58:30 UTC, Stefan Koch wrote:
On Friday, 12 January 2018 at 14:13:22 UTC, Basile B. wrote:
I have a simple program that only compiles if the
On Friday, 26 January 2018 at 11:18:21 UTC, Oleksii Skidan wrote:
Hi,
I wonder if it's possible to convert D language code into a
string at compile time? C/C++ preprocessor has this feature
built-in: `#` preprocessing operator allows converting a macro
argument into a string constant. See the
On Saturday, 30 January 2016 at 03:13:59 UTC, Matt Elkins wrote:
std.typecons.Unique seems to require heap allocation, which
makes it a far cry from std::unique_ptr.
isn't unique_ptr typically for heap allocation?
eg:
https://stackoverflow.com/questions/42910711/unique-ptr-heap-and-stack-allo
On Wednesday, 13 December 2017 at 00:43:31 UTC, rikki cattermole
wrote:
You don't need to change this and if you think you do, you're
wrong :)
Except when you need to:
https://github.com/dlang/dub/issues/1305
dub build --compiler=ldmd2 overwrites files in ~/.dub written by
dub build #1305
Might I suggest that you simply define an enum for UnixEpoch
that's a
SysTime. Then you can do whatever you want.
ping on this.
On Saturday, 10 December 2016 at 02:39:33 UTC, timotheecour wrote:
Have a look at what `trace -E d_executable args` and `trace -E
c++_executable args`
print on startup and grep for dlopen calls and the like.
do you mean strace?
I have trace on OSX but I'm asking for linux.
Looking at the cod
Have a look at what `trace -E d_executable args` and `trace -E
c++_executable args`
print on startup and grep for dlopen calls and the like.
do you mean strace?
I have trace on OSX but I'm asking for linux.
UPDATE:
* b Loader.d:123 didn't help either:
error: parsing line table prologue at 0x (parsing ended
around 0x
Breakpoint 1: where =
mybinary.temp`D4gtkc6Loader6Linker12_staticDtor3FZv, address =
0x000100315410
(process exited despite breakpoint); dmd's dwarf debug info se
On Thursday, 21 May 2015 at 19:06:35 UTC, Jacob Carlborg wrote:
On 2015-05-21 11:06, Timothee Cour via Digitalmars-d-learn
wrote:
Can I create an instance of A without calling a constructor?
(see below)
Use case: for generic deserialiaztion, when the
deserialization library
encounters a class w
On Saturday, 23 May 2015 at 08:01:28 UTC, timotheecour wrote:
On Saturday, 10 November 2012 at 22:09:07 UTC, Andrej Mitrovic
wrote:
On 11/10/12, nixda wrote:
You can try vibe.d bson serialization.
http://vibed.org/api/vibe.data.bson/serializeToBson
It doesn't handle them either. Anyway I've
On Saturday, 10 November 2012 at 22:09:07 UTC, Andrej Mitrovic
wrote:
On 11/10/12, nixda wrote:
You can try vibe.d bson serialization.
http://vibed.org/api/vibe.data.bson/serializeToBson
It doesn't handle them either. Anyway I've implemented it for
msgpack
(took a whole of 30 minutes, it's a
On Wednesday, 6 August 2014 at 17:03:23 UTC, Timothee Cour via
Digitalmars-d-learn wrote:
Is there a reason why 'with(Foo):' is not allowed, and we have
to
use with(Foo){...} ?
It would be more in line with how other scope definitions work
(extern(C)
etc)
ping, anyone?
On Thursday, 5 June 2014 at 06:58:50 UTC, Timothee Cour via
Digitalmars-d-learn wrote:
Is there a way to do this?
import std.algorithm;
auto fun(T)(T a){return a;}
template fun2(T){auto fun2(T a){return fun(a);}}//OK but heavy
syntax and
cannot be nested inside test()
void main(){
//alias
14 matches
Mail list logo