The project [Lumars](https://code.dlang.org/packages/lumars) has
released a new version 10 days ago in
[github](https://github.com/BradleyChatha/lumars). But still
unavailable in DUB.
On Wednesday, 3 August 2022 at 12:27:32 UTC, frame wrote:
On Wednesday, 3 August 2022 at 03:36:55 UTC, Domain wrote:
I want to find out all public functions in all modules in a
package. Can I do that at compile time?
You can do something like that:
```d
static foreach (sym;
I want to find out all public functions in all modules in a
package. Can I do that at compile time?
On Saturday, 14 May 2022 at 16:51:02 UTC, zoujiaqing wrote:
On Saturday, 14 May 2022 at 16:06:36 UTC, Domain wrote:
On Saturday, 14 May 2022 at 15:16:42 UTC, zjh wrote:
On Saturday, 14 May 2022 at 14:58:52 UTC, zoujiaqing wrote:
Hi, everybody.
The epidemic in China is serious. I am in home
On Saturday, 14 May 2022 at 15:16:42 UTC, zjh wrote:
On Saturday, 14 May 2022 at 14:58:52 UTC, zoujiaqing wrote:
Hi, everybody.
The epidemic in China is serious. I am in home quarantine in
Shanghai.
Shanghaier, is it easy to be harmed by the leaders?
静默已经够辛苦了,何必聊天还要说英文呢
;”On Saturday, 27 July 2019 at 21:05:26 UTC, zoujiaqing wrote:
On Saturday, 27 July 2019 at 21:05:26 UTC, zoujiaqing wrote:
On Saturday, 27 July 2019 at 17:25:50 UTC, Johannes Loher wrote:
[...]
非常抱歉,我的英文很差,不知道怎么去保留一个版权,我已经说明了我们是移植自 jedis。
另外来说,我们不是公司,我们是非盈利组织,我们只是希望弥补社区在服务端领域的短板。
On Friday, 3 May 2019 at 21:07:29 UTC, H. S. Teoh wrote:
On Fri, May 03, 2019 at 09:56:56PM +0100, Russel Winder via
Digitalmars-d-learn wrote:
On Thu, 2019-05-02 at 09:28 -0700, H. S. Teoh via
Digitalmars-d-learn wrote:
> On Thu, May 02, 2019 at 05:23:29PM +0100, Russel Winder via
>
On Wednesday, 1 May 2019 at 13:57:04 UTC, bachmeier wrote:
On Wednesday, 1 May 2019 at 13:54:08 UTC, Domain wrote:
I need a xml library which support document entity or xinclude.
The xml may like this:
]>
http://www.w3.org/2001/XInclude;>
Have you looked at this?
I need a xml library which support document entity or xinclude.
The xml may like this:
]>
http://www.w3.org/2001/XInclude;>
On Sunday, 3 March 2019 at 01:51:49 UTC, Domain wrote:
[...]
Sorry, my mistake.
I can build dynamic library now.
On Sunday, 3 March 2019 at 12:25:28 UTC, kinke wrote:
On Sunday, 3 March 2019 at 01:47:50 UTC, Domain wrote:
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld:
cannot find -lphobos2-ldc-shared
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld:
cannot find
On Sunday, 3 March 2019 at 01:47:50 UTC, Domain wrote:
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld:
cannot find -lphobos2-ldc-shared
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld:
cannot find -ldruntime-ldc-shared
Any dub config example?
~> dub build
Dynamic
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld:
cannot find -lphobos2-ldc-shared
/data/data/com.termux/files/usr/bin/aarch64-linux-android-ld:
cannot find -ldruntime-ldc-shared
How to do that?
I have a package named command, and many modules inside it, such
as command.build, command.pack, command.help...
I want to get all these modules at compile time so that I know
what command is available.
On Friday, 16 November 2018 at 17:46:20 UTC, Adam D. Ruppe wrote:
On Friday, 16 November 2018 at 17:36:01 UTC, Domain wrote:
I think this is unacceptable.
Why?
You are asking it to write to a file that doesn't exist... you
probably shouldn't be doing that...
But I cannot control the 3rd
When I link the app with /subsystem:windows, and all writeln and
writefln will cause a enforcement failed (stdio.d:2889).
I think this is unacceptable.
On Friday, 7 September 2018 at 02:22:58 UTC, Domain wrote:
The following code fail to compile:
enum KeyMod : int
{
LCtrl = 1 << 0,
RCtrl = 1 << 1,
Ctrl = LCtrl | RCtrl,
}
struct Flags(E)
{
public:
BitFlags!(E, Yes.unsafe) flags;
alias flags this;
bool
The following code fail to compile:
enum KeyMod : int
{
LCtrl = 1 << 0,
RCtrl = 1 << 1,
Ctrl = LCtrl | RCtrl,
}
struct Flags(E)
{
public:
BitFlags!(E, Yes.unsafe) flags;
alias flags this;
bool opDispatch(string name)() const
if (__traits(hasMember, E, name))
On Thursday, 9 August 2018 at 11:48:55 UTC, Laurent Tréguier
wrote:
On Thursday, 9 August 2018 at 10:37:32 UTC, IM wrote:
I've always had issues with Code-d! I filed several issues on
its GitHub repo, but my experience with the Code-d author was
that those issues are likely to remain open and
On Friday, 9 February 2018 at 20:34:33 UTC, Benjamin Thaut wrote:
My work on dll support for D continues. There is another
iteration I need help testing with.
Any update?
On Wednesday, 4 April 2018 at 13:26:18 UTC, WebFreak001 wrote:
On Wednesday, 4 April 2018 at 11:08:09 UTC, Domain wrote:
On Tuesday, 3 April 2018 at 23:02:42 UTC, WebFreak001 wrote:
[...]
// >>> many Could not resolve location of module here <<<
Server:
On Tuesday, 3 April 2018 at 23:02:42 UTC, WebFreak001 wrote:
new code-d (D extension for vscode) and serve-d (Language
Server Protocol server for it) release
See the CHANGELOG in vscode, or on
https://github.com/Pure-D/code-d/blob/master/CHANGELOG.md
Today massive improvements towards
On Tuesday, 3 April 2018 at 02:31:15 UTC, Uknown wrote:
On Tuesday, 3 April 2018 at 02:24:08 UTC, Domain wrote:
wchar[10] buffer;
toUTF8(buffer);
Error: template `std.utf.toUTF8` cannot deduce function from
argument types `!()(wchar[10])`, candidates are:
wchar[10] buffer;
toUTF8(buffer);
Error: template `std.utf.toUTF8` cannot deduce function from
argument types `!()(wchar[10])`, candidates are:
/dlang/dmd/linux/bin64/../../src/phobos/std/utf.d(2713):
`std.utf.toUTF8(S)(S s) if (isInputRange!S && !isInfinite!S &&
On Saturday, 24 February 2018 at 08:59:46 UTC, Domain wrote:
On Saturday, 24 February 2018 at 07:51:27 UTC, Domain wrote:
[...]
And why this not compile:
rows.each!(a => data ~= a.split(",").map!(b =>
b.strip).padRight("", 2));
Error: cannot deduce function from argument types
On Saturday, 24 February 2018 at 07:51:27 UTC, Domain wrote:
I want to convert a string like " a,b1, 23 " to
a 2D array like:
[["a", "b"],
["1", "2"],
["3", "" ]]
auto html = " a,b1, 23 ";
auto rows = html.strip.chomp("").split("");
string[][] data;
rows.each!(a => data ~= a.split(","));
I want to convert a string like " a,b1, 23 " to a
2D array like:
[["a", "b"],
["1", "2"],
["3", "" ]]
auto html = " a,b1, 23 ";
auto rows = html.strip.chomp("").split("");
string[][] data;
rows.each!(a => data ~= a.split(","));
string[][] result = data.map!(a => a.padRight("",
module main;
void main ()
{
writeln("Hello");
}
Of course, this won't compile, but error message is confused:
C:\Git\hello\source>dmd app.d
app.d(5): Error:
object.Error@(0): Access Violation
0x0065445A
0x006548FE
0x0064DBD3
0x004B0B90
0x004B8A02
0x00594813
0x005797E2
On Thursday, 11 January 2018 at 18:56:23 UTC, Benjamin Thaut
wrote:
Am 11.01.2018 um 05:10 schrieb Domain:
[...]
As I said in the first post, I'm not interrested in linker
errors due to missing 'export' annotation.
std.experimental.logger does not have an export annotations and
therefor
On Thursday, 11 January 2018 at 18:56:23 UTC, Benjamin Thaut
wrote:
Am 11.01.2018 um 05:10 schrieb Domain:
[...]
As I said in the first post, I'm not interrested in linker
errors due to missing 'export' annotation.
std.experimental.logger does not have an export annotations and
therefor
On Wednesday, 10 January 2018 at 13:14:10 UTC, Benjamin Thaut
wrote:
Am 10.01.2018 um 13:39 schrieb Domain:
Sorry, my mistake. But I cannot use your binary:
D:\>dmd -m64 -shared dll.d -ofdll.dll
Error: unrecognized file extension dll
This works just fine for me. What is the output when
On Wednesday, 10 January 2018 at 13:14:10 UTC, Benjamin Thaut
wrote:
Am 10.01.2018 um 13:39 schrieb Domain:
Sorry, my mistake. But I cannot use your binary:
D:\>dmd -m64 -shared dll.d -ofdll.dll
Error: unrecognized file extension dll
This works just fine for me. What is the output when
On Wednesday, 10 January 2018 at 11:30:47 UTC, Benjamin Thaut
wrote:
Am 10.01.2018 um 05:18 schrieb Domain:
On Saturday, 6 January 2018 at 19:32:51 UTC, Benjamin Thaut
wrote:
I'm currently back on dll support and I'm applying finishing
touches to my dll support PR. Now I want to know if I
On Saturday, 6 January 2018 at 19:32:51 UTC, Benjamin Thaut wrote:
I'm currently back on dll support and I'm applying finishing
touches to my dll support PR. Now I want to know if I missed
any corner cases and it would be great if a few more people
gave the dll support a try.
[...]
I am
On Monday, 1 January 2018 at 16:13:06 UTC, Domain wrote:
On Monday, 1 January 2018 at 12:33:27 UTC, John Chapman wrote:
On Sunday, 31 December 2017 at 18:21:29 UTC, Domain wrote:
In Windows, exists, rename, copy will report file not exists
when you input non-English filename, such as Chinese
On Monday, 1 January 2018 at 12:33:27 UTC, John Chapman wrote:
On Sunday, 31 December 2017 at 18:21:29 UTC, Domain wrote:
In Windows, exists, rename, copy will report file not exists
when you input non-English filename, such as Chinese 中文.txt
Works for me. I created a file with the name
In Windows, exists, rename, copy will report file not exists when
you input non-English filename, such as Chinese 中文.txt
On Tuesday, 17 October 2017 at 08:43:33 UTC, Domain wrote:
On Tuesday, 17 October 2017 at 03:10:52 UTC, Dmitry wrote:
On Tuesday, 17 October 2017 at 02:32:49 UTC, Domain wrote:
Can you share your tasks.json and launch.json?
tasks.json - I don't have this file.
launch.json:
{
"version":
On Tuesday, 17 October 2017 at 03:10:52 UTC, Dmitry wrote:
On Tuesday, 17 October 2017 at 02:32:49 UTC, Domain wrote:
Can you share your tasks.json and launch.json?
tasks.json - I don't have this file.
launch.json:
{
"version": "0.2.0",
"configurations": [
{
On Sunday, 15 October 2017 at 13:54:49 UTC, Dmitry wrote:
On Friday, 13 October 2017 at 12:55:09 UTC, piotrklos wrote:
Has anyone been able to debug in VS code on Windows? What am I
doing wrong?
Yep, it work for me.
How do you start debugging?
I noticed that the bottom button (small bug) at
On Sunday, 15 October 2017 at 08:47:42 UTC, Domain wrote:
void f(int i)
{
writeln("i");
}
void f(E)(E e) if (is(E == enum))
{
writeln("e");
}
enum E { A }
E e = E.A;
f(e);// output i
How can I overload with enum type?
I know I can do that with this:
void f(T)(T i) if (is(T ==
void f(int i)
{
writeln("i");
}
void f(E)(E e) if (is(E == enum))
{
writeln("e");
}
enum E { A }
E e = E.A;
f(e);// output i
How can I overload with enum type?
On Wednesday, 30 August 2017 at 07:44:54 UTC, Vadim Lopatin wrote:
There are a lot of improvements in DlangIDE since last
announcement.
[...]
Is there any themes to download? It's a bit ugly in windows
On Tuesday, 1 August 2017 at 09:06:39 UTC, rikki cattermole wrote:
On 01/08/2017 9:28 AM, Domain wrote:
I want to redirect the sharedLog to my logger in one dll, and
all dlls will use the new one. What should I do?
sharedLog = new MyLogger(); // this will not change the logger
in other dll
I want to redirect the sharedLog to my logger in one dll, and all
dlls will use the new one. What should I do?
sharedLog = new MyLogger(); // this will not change the logger in
other dll
On Tuesday, 1 August 2017 at 03:30:08 UTC, Adam D. Ruppe wrote:
On Tuesday, 1 August 2017 at 03:08:30 UTC, Domain wrote:
And I can see SimpleDllMain in core.sys.windows.dll, the
mangled name is correct: DllMain
main, DllMain, and WinMain are special cased...
for yours, I think you'll have to
I known there is a bug with extern(C) in mixin template:
https://issues.dlang.org/show_bug.cgi?id=12575
And I can see SimpleDllMain in core.sys.windows.dll, the mangled
name is correct: DllMain
But my mixin template has wrong mangled name:
mixin template GetMetaData()
{
extern(Windows)
On Friday, 12 May 2017 at 20:51:17 UTC, سليمان السهمي (Soulaïman
Sahmi) wrote:
On Friday, 12 May 2017 at 00:20:13 UTC, سليمان السهمي
(Soulaïman Sahmi) wrote:
Is there a rational behind not allowing statements inside
mixin templates? ...
I guess the answer is, nobody has written a DIP for it?
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
On Friday, July 21, 2017 15:33:45 Domain via
Digitalmars-d-learn wrote:
After upgrade dmd to latest 2.075.0, my project no longer
build:
zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved
external symbol _D3std8d
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
On Friday, July 21, 2017 15:33:45 Domain via
Digitalmars-d-learn wrote:
After upgrade dmd to latest 2.075.0, my project no longer
build:
zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved
external symbol _D3std8d
On Friday, 21 July 2017 at 19:05:00 UTC, Jonathan M Davis wrote:
On Friday, July 21, 2017 15:33:45 Domain via
Digitalmars-d-learn wrote:
After upgrade dmd to latest 2.075.0, my project no longer
build:
zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved
external symbol _D3std8d
After upgrade dmd to latest 2.075.0, my project no longer build:
zero.lib(core_cde_4a4f.obj) : error LNK2001: unresolved external
symbol _D3std8d
atetime9LocalTime6opCallFNaNbNeZyC3std8datetime9LocalTime
and many more. All about std.datetime.
On Thursday, 20 July 2017 at 15:31:55 UTC, WebFreak001 wrote:
On Monday, 17 July 2017 at 08:44:46 UTC, Domain wrote:
Could anyone show me how to debug in vscode with mago-mi?
I have installed vscode with Native Debug, SDLang. I have
tried dlang-vscode and code-d.
[...]
Is the application
Could anyone show me how to debug in vscode with mago-mi?
I have installed vscode with Native Debug, SDLang. I have tried
dlang-vscode and code-d.
My tasks.json:
{
"version": "2.0.0",
"command": "dub",
"type": "shell",
"presentation": {
"echo": true,
"reveal":
On Friday, 24 February 2017 at 13:19:53 UTC, FR wrote:
On Friday, 24 February 2017 at 03:15:11 UTC, Jerry wrote:
You can use the C++ plugin, which provides a debugger. Just
make sure you aren't using optlink, I don't think it generates
compatible files. Also you might need to use "-gc" which
On Monday, 12 June 2017 at 18:12:38 UTC, Timothee Cour wrote:
any help on this would be most welcome:
https://github.com/msgpack-rpc/msgpack-rpc-d/issues/16
Unfortunately I find the RPC support in D lacking. Having a
good RPC integration for D is key for production use of D where
one wants
On Monday, 17 June 2013 at 22:38:47 UTC, Timothee Cour wrote:
inside std.process it says:
// Pids are only meant to be constructed inside this module, so
we make the
constructor private.
However, this makes a number of useful functions from
std.process useless
unless the processes were
I use the latest dmd.
It seems dub fetch the wrong dependencies
C:\Domain\d>dub build dfix --build=release
Building package dfix in
C:\Users\Domain\AppData\Roaming\dub\packages\dfix-0.3.
1\dfix\
Fetching experimental_allocator 2.70.0-b1 (getting selected
version)...
Fetching libdparse 0.3.0
On Tuesday, 12 January 2016 at 07:15:33 UTC, Ali Çehreli wrote:
On 01/10/2016 06:43 PM, Domain wrote:
I am writing a split-liked tool, and want to write some large
data
(>4GB) to a single file. But this is not possible while using
std.file.write, at least on windows. And I need dig into the
I am writing a split-liked tool, and want to write some large
data (>4GB) to a single file. But this is not possible while
using std.file.write, at least on windows. And I need dig into
the source code to find out the reason (Windows API WriteFile
uses DWORD as the input size). So why not call
On Tuesday, 17 November 2015 at 02:42:29 UTC, Adam D. Ruppe wrote:
On Tuesday, 17 November 2015 at 02:40:14 UTC, Domain wrote:
How to use readText to read utf16 file?
readText!wstring("filename")
should do it for utf16. It will return a wstring, which is
utf-16.
You can do utf32 with
How to use readText to read utf16 file? Or other encoding file.
On Tuesday, 17 November 2015 at 03:12:47 UTC, Steven
Schveighoffer wrote:
On 11/16/15 10:00 PM, Adam D. Ruppe wrote:
On Tuesday, 17 November 2015 at 02:50:44 UTC, Domain wrote:
Thanks! But how to remove BOM? Slice the result myself?
Yeah. Do something like if(result.length &[0] == bom) {
On Wednesday, 7 May 2014 at 18:24:23 UTC, Kapps wrote:
On Wednesday, 7 May 2014 at 16:51:10 UTC, amehat wrote:
Hello everyone,
I'm working on porting a java library in D, and I stuck on a
class because it works with the reflection.
From what I've read on prowiki
module test;
public interface I
{
void foo();
void foo(int);
}
public abstract class A : I
{
public void bar()
{
foo();
}
public void foo(int i)
{
}
}
public class C : A
{
public void foo()
{
}
public void bar2()
{
foo(1);
66 matches
Mail list logo