I have difficulties creating a Shared Object (.so) with D. Is it
possible? Can I use classes defined in the library from the executable?
Here is my library file:
module test; // file "test.d"
export int testMe() { return 1; }
export class Test
{
private int n;
this(int i) { n = i; }
i
I am trying to learn to read bool as a string and have it converted to bool.
Too much to ask? :)
This is what I know in C++:
#include
#include
using namespace std;
int main()
{
cin >> boolalpha;
cout << boolalpha;
bool b = false;
cin >> b;
cout << b << endl;
}
cin and c
Trass3r:
>Are there any plans to include a stacktrace in Phobos2?<
+100
Bye,
bearophile
Robert Fraser schrieb:
There's no Windows stack trace that works with the newest Phobos AFAIK,
however if you're using D2, you could probably copy Tango's stacktrace
pretty easily since it has no dependencies on Tango other than the
runtime, and druntime is used in Phobos2.
Really? Seems pret
Vladimir Voinkov wrote:
std.regex.replace does not compile with wstring:
Correct.
Stewart.
It will be disastrous to automatically delete all referenced objects.
Now that you say it, yes there could be other references to that object.
std.regex.replace does not compile with wstring:
auto x = std.regex.regex ("abc"w);
wchar[] buffer = "abc"w.dup;
std.regex.replace (buffer, x, "def"w);
Trass3r Wrote:
> So scope for class references guarantees that the destructor is called
> upon leaving the scope (why isn't this done automatically?).
It will be disastrous to automatically delete all referenced objects.