I am trying to create an array of functions inside a struct.
struct S {
void f1() {}
void f2() {}
alias Func = void function();
immutable Func[2] = [&f1, &f2]
}
What I got: Error: non-constant expression '&f1'
Tried also with delegates (since I am in a struct context but I
got: no `t
Hello, how does one:
1. Force static linking (build with `-defaultlib` flag)
2. Specify binary file generated by the `dub buid` command
3. Specify binary file generated by the `dub test` command
in the `dub.json` file?
On Tue, Dec 24, 2019 at 12:33:34AM +, psyscout via Digitalmars-d-learn
wrote:
[...]
> auto putObjectRequest(string bucket, string key, string file)
> {
> import std.stdio : File;
>
> enum chunk_size = 16 * 1024; // 16 KiB
> auto file_ = File(file, "r");
>
> return Put
Hi all,
I'm trying to resolve a Deprecation message. File.ByChunkImpl is
private which cause a compiler message.
Any clue how to to deal with this?
(Deprecation: std.stdio.File.ByChunkImpl is not visible)
struct PutObjectRequest(Range)
if (isInputRange!Range && is(ElementType!Range ==
On Monday, 23 December 2019 at 15:51:17 UTC, bachmeier wrote:
On Monday, 23 December 2019 at 15:07:32 UTC, H. S. Teoh wrote:
On Sun, Dec 22, 2019 at 05:20:51PM +, BoQsc via
Digitalmars-d-learn wrote:
There are lots of editors/IDE's that support D language:
https://wiki.dlang.org/Editors
W
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote:
There are lots of editors/IDE's that support D language:
https://wiki.dlang.org/Editors
What kind of editor/IDE are you using and which one do you like
the most?
I've loved Sublime for years. I use it for everything, really. So
prett
On 12/23/19 2:52 PM, Symphony wrote:
Pardon my ignorance, but wouldn't the inclusion of a std.io (e.g. Martin
Nowak's io library) into Phobos be an easier and cleaner move? Other
Phobos modules that require std.stdio could be gradually changed so that
they use std.io instead.
Well, that's ce
On Monday, 23 December 2019 at 15:34:13 UTC, Steven Schveighoffer
wrote:
I really appreciate the enthusiasm here, but at the risk of
being cynical, I see little chance that this gets accepted.
Before you spend any time on actual code, a DIP is going to be
required, as this would be a huge chang
On 12/23/19 11:02 AM, Adam D. Ruppe wrote:
On Monday, 23 December 2019 at 15:41:33 UTC, Steven Schveighoffer wrote:
That means we have to buffer separately, which means we have a problem
interleaving printf with writef. It would be awful.
Or simply don't buffer. Any call you get, flush the C b
On Mon, Dec 23, 2019 at 10:41:33AM -0500, Steven Schveighoffer via
Digitalmars-d-learn wrote:
[...]
> There's this guy, his name is Walter. He likes printf. I'm pretty sure
> when he's buried, his cold dead fingers will be tightly and
> inextricably wrapped around printf.
[...]
But that's not a p
On Mon, Dec 23, 2019 at 03:51:17PM +, bachmeier via Digitalmars-d-learn
wrote:
> On Monday, 23 December 2019 at 15:07:32 UTC, H. S. Teoh wrote:
[...]
> > Linux is my IDE. ;-) And I use vim for editing code.
[...]
> Not a Vim user, but wondering if there's Neovim support for D. If so,
> it nee
On Monday, 23 December 2019 at 15:41:33 UTC, Steven Schveighoffer
wrote:
That means we have to buffer separately, which means we have a
problem interleaving printf with writef. It would be awful.
Or simply don't buffer. Any call you get, flush the C buffer and
write the D stuff immediately.
On Monday, 23 December 2019 at 15:39:30 UTC, bachmeier wrote:
Slackware has slackbuilds for dmd and gdc.
Slackware-current has gdc in the main package repo now!
On Monday, 23 December 2019 at 15:07:32 UTC, H. S. Teoh wrote:
On Sun, Dec 22, 2019 at 05:20:51PM +, BoQsc via
Digitalmars-d-learn wrote:
There are lots of editors/IDE's that support D language:
https://wiki.dlang.org/Editors
What kind of editor/IDE are you using and which one do you
like
On 12/23/19 10:48 AM, bachmeier wrote:
On Monday, 23 December 2019 at 15:34:13 UTC, Steven Schveighoffer wrote:
I really appreciate the enthusiasm here, but at the risk of being
cynical, I see little chance that this gets accepted. Before you spend
any time on actual code, a DIP is going to be
On Monday, 23 December 2019 at 15:34:13 UTC, Steven Schveighoffer
wrote:
I really appreciate the enthusiasm here, but at the risk of
being cynical, I see little chance that this gets accepted.
Before you spend any time on actual code, a DIP is going to be
required, as this would be a huge cha
On 12/23/19 10:25 AM, H. S. Teoh wrote:
On Sun, Dec 22, 2019 at 10:04:20PM +, Adam D. Ruppe via Digitalmars-d-learn
wrote:
[...]
Regardless, I'm pretty well of the opinion that fwrite is the wrong
thing to do anyway. fwrite writes bytes to a file, but we want to
write strings to the console
On Monday, 23 December 2019 at 15:11:21 UTC, H. S. Teoh wrote:
On Mon, Dec 23, 2019 at 01:34:55PM +, BoQsc via
Digitalmars-d-learn wrote:
I would love to see D language available out of box in major
Linux distributions and use without much care of installation.
Anyone have a though about it
On 12/22/19 11:53 PM, Symphony wrote:
On Sunday, 22 December 2019 at 22:47:43 UTC, Steven Schveighoffer wrote:
To fix Phobos, we just(!) need to remove libc as the underlying stream
implementation.
I had at one point agreement from Walter to make a
"backwards-compatible-ish" mechanism for fil
On Sun, Dec 22, 2019 at 10:04:20PM +, Adam D. Ruppe via Digitalmars-d-learn
wrote:
[...]
> Regardless, I'm pretty well of the opinion that fwrite is the wrong
> thing to do anyway. fwrite writes bytes to a file, but we want to
> write strings to the console. There's other functions that do tha
On Mon, Dec 23, 2019 at 01:34:55PM +, BoQsc via Digitalmars-d-learn wrote:
> I would love to see D language available out of box in major Linux
> distributions and use without much care of installation. Anyone have a
> though about it? Was there any serious efforts to bring D language to
> Majo
On Sun, Dec 22, 2019 at 05:20:51PM +, BoQsc via Digitalmars-d-learn wrote:
> There are lots of editors/IDE's that support D language:
> https://wiki.dlang.org/Editors
>
> What kind of editor/IDE are you using and which one do you like the most?
Linux is my IDE. ;-) And I use vim for editing
On Sun, Dec 22, 2019 at 06:27:03PM +0100, Robert M. Münch via
Digitalmars-d-learn wrote:
> Want to add I'm talking about unicode strings.
>
> Wouldn't it make sense to handle everything as UTF-32 so that
> iteration is simple because code-point = code-unit?
>
> And later on, convert to UTF-16 or
On Monday, 23 December 2019 at 13:34:55 UTC, BoQsc wrote:
I would love to see D language available out of box in major
Linux distributions and use without much care of installation.
Anyone have a though about it? Was there any serious efforts to
bring D language to Major distributions?
What d
I would love to see D language available out of box in major
Linux distributions and use without much care of installation.
Anyone have a though about it? Was there any serious efforts to
bring D language to Major distributions?
On Sun, 2019-12-22 at 17:20 +, BoQsc via Digitalmars-d-learn wrote:
> There are lots of editors/IDE's that support D language:
> https://wiki.dlang.org/Editors
>
> What kind of editor/IDE are you using and which one do you like
> the most?
CLion with the DLanguage plugin. Very much a work i
On Sunday, 22 December 2019 at 17:20:51 UTC, BoQsc wrote:
There are lots of editors/IDE's that support D language:
https://wiki.dlang.org/Editors
What kind of editor/IDE are you using and which one do you like
the most?
This list could use some cleaning up. Some of the IDEs haven't
been mai
27 matches
Mail list logo