On Saturday, 11 November 2023 at 17:29:14 UTC, BoQsc wrote:
https://dlang.org/library/std/process.html
How do I pipe (|) through three programs using std.process?
https://dev.to/jessekphillips/piping-process-output-1cai
Your issue with [Find, "Hello"] might be
[Find, "\"Hello\""]
But I'm
On Saturday, 11 November 2023 at 23:28:18 UTC, Trevor wrote:
Thanks for the detailed reply. I guess what I'd like to do is
not create a DUB package for every little project I work on. It
seems like most modern languages require a package/dependency
manager though. Being able to install
On Monday, 2 October 2023 at 18:34:13 UTC, BoQsc wrote:
---
**This might lead to less gaps between math formulas and the
implementation.**
Or at the very least would allow to define a formula in the
source code for further implementation and introduce some
consistency.
You could write a
On Wednesday, 4 October 2023 at 10:51:46 UTC, dhs wrote:
D and Go slices have advantages but can be confusing. I don't
have a solution, but if anyone is interested, the relevant
discussions about slice confusion in the Go community apply to
D slices as well.
I don't believe slice confusion
On Friday, 7 July 2023 at 22:41:38 UTC, Walter Bright wrote:
The problem has a lot to do with people wanting to use 3rd
party libraries, and it being impractical to upgrade those
libraries when the maintainer of those libraries is no longer
active. If a user's project depends on several such
On Wednesday, 16 November 2022 at 22:51:31 UTC, bioinfornatics
wrote:
Dear community,
I look some day ago to the D wasm page:
-> https://wiki.dlang.org/Generating_WebAssembly_with_LDC
And since then I ask myself can we at compile time convert a D
code to an extern C code for wasm ?
Thanks
On Friday, 23 September 2022 at 08:50:42 UTC, Salih Dincer wrote:
On Thursday, 22 September 2022 at 21:49:36 UTC, Ali Çehreli
wrote:
On 9/22/22 14:31, Salih Dincer wrote:
If you have multiple '\0' chars that you will continue looking
for, how about the following?
It can be preferred in
Nice. I've really enjoyed gettext in C# in my verification of an
application without gettext usage.
On Wednesday, 22 June 2022 at 01:09:22 UTC, Steven Schveighoffer
wrote:
There are 3 situations:
1. field in json and struct. Obvious result.
2. field in json but not in struct.
3. field in struct but not in json.
I do a lot of reading JSON data in C#, and I heavily lean on
optional over
On Wednesday, 1 June 2022 at 15:40:43 UTC, harakim wrote:
It's been a long time since I did any C development, and I have
never done any on windows, but I thought I could statically
link to the .lib at compile time and then I wouldn't need a
dll. I'm fine with using a dll, but I don't know how
On Thursday, 19 August 2021 at 04:03:31 UTC, jfondren wrote:
On Thursday, 19 August 2021 at 03:32:47 UTC, Jesse Phillips
wrote:
On Tuesday, 17 August 2021 at 12:33:03 UTC, Ferhat Kurtulmuş
wrote:
Hey, thank you again but, I don't want an instance of
Point[] I need:
alias T = Point[];
alias
On Thursday, 19 August 2021 at 13:47:56 UTC, Ruby The Roobster
wrote:
On Thursday, 19 August 2021 at 03:25:31 UTC, Jesse Phillips
wrote:
tell me what went wrong. I am using DMD 2.097.2
:
```d
case WM_CREATE: //Executed on creation of the window...
try {
import core.stdc.stdio
On Thursday, 19 August 2021 at 03:29:03 UTC, Jesse Phillips wrote:
On Tuesday, 17 August 2021 at 12:33:03 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 17 August 2021 at 12:26:36 UTC, jfondren wrote:
On Tuesday, 17 August 2021 at 12:21:31 UTC, Ferhat Kurtulmuş
wrote:
[...]
This one's
On Tuesday, 17 August 2021 at 12:33:03 UTC, Ferhat Kurtulmuş
wrote:
On Tuesday, 17 August 2021 at 12:26:36 UTC, jfondren wrote:
On Tuesday, 17 August 2021 at 12:21:31 UTC, Ferhat Kurtulmuş
wrote:
[...]
This one's not in std.traits:
```d
import std.range : ElementType;
struct Point { int x,
On Wednesday, 18 August 2021 at 17:42:53 UTC, Ruby The Roobster
wrote:
All I did was try to access a file with a self-made library.
It didn't work. I tried again directly from the main file.
This is the code:
```d
File file =
File("E:\\Users\\User\\Desktop\\dutils\\test.spr","r");
On Tuesday, 18 May 2021 at 16:27:13 UTC, Alain De Vos wrote:
After each } i write a ;
And let the compiler tell me it is an empty instruction.
What are the general rules where ; is not needed after a }
This is a good question, I'm not sure I can provide a concise
answer.
In general you
On Saturday, 13 March 2021 at 21:33:20 UTC, Meta wrote:
// these 2 are equivalent
int foo() { return 1; }
int foo() => 1;
The syntax allows the form => expr to replace the function body
{ return expr; }
Amazing! I had no idea this got in. I love the syntax.
Yeah, c# added this syntax
On Saturday, 6 March 2021 at 21:20:30 UTC, kdevel wrote:
```pipechain.d
import std.stdio;
import std.process;
import std.conv;
import std.array;
import std.range;
import std.algorithm;
int main (string [] args)
{
auto p = pipe ();
auto proc1 = spawnProcess (["cat"], stdin, p.writeEnd);
On Friday, 5 March 2021 at 02:13:39 UTC, Jack wrote:
something like filter[1] but that stops at first match? are
there any native functions for this in D or I have to write
one? just making sure to not reinvent the wheel
[1]: https://devdocs.io/d/std_algorithm_iteration#filter
On Wednesday, 17 February 2021 at 06:58:55 UTC, Jedi wrote:
I an using pipeShell, I have redirected stdout, stderr, and
stdin.
I am trying to read from the output and display it in my app. I
have followed this code almost exactly except I use try wait
and flush because the app is
On Tuesday, 26 January 2021 at 02:19:10 UTC, Tim wrote:
On Tuesday, 26 January 2021 at 01:38:45 UTC, Q. Schroll wrote:
On Tuesday, 26 January 2021 at 00:47:09 UTC, Tim wrote:
Hi all,
How can I change the following to a more D-like approach by
using UFCS?
double[3] result;
Unless you
On Sunday, 27 December 2020 at 13:21:44 UTC, Rekel wrote:
On Sunday, 27 December 2020 at 02:41:12 UTC, Jesse Phillips
wrote:
Unfortunately std.csv is character based and not string.
https://dlang.org/phobos/std_csv.html#.csvReader
But your use case sounds like splitter is more aligned
On Sunday, 27 December 2020 at 00:13:30 UTC, Rekel wrote:
I'm trying to read a file with entries seperated by '\n\n'
(empty line), with entries containing '\n'. I thought the
File.readLine(KeepTerminator, Terminator) might work, as it
seems to accept strings as terminators, since there seems
On Wednesday, 11 November 2020 at 22:29:00 UTC, SealabJaster
wrote:
On Wednesday, 11 November 2020 at 22:10:38 UTC, WhatMeWorry
wrote:
Thanks. Would you or anyone reading this know if this is
unique to D or does C++ also behave like this? Also, where is
the memory, that new allocates? Is it
On Saturday, 7 November 2020 at 15:49:13 UTC, James Blachly wrote:
```
return i > 0 ? cast(Result) Success!int(i) : cast(Result)
Failure("Sorry");
```
I don't know about the SumType but I would expect you could use a
construction instead of cast.
import std;
alias Result =
On Friday, 6 November 2020 at 15:06:18 UTC, Andrey Zherikov wrote:
On Friday, 6 November 2020 at 14:58:40 UTC, Jesse Phillips
wrote:
On Friday, 6 November 2020 at 14:20:40 UTC, Andrey Zherikov
wrote:
This issue seems hit the inability to implicitly convert
custom types. May be it makes more
On Friday, 6 November 2020 at 20:05:36 UTC, Ferhat Kurtulmuş
wrote:
On Friday, 6 November 2020 at 10:51:20 UTC, Andrey Zherikov
wrote:
I have auto function 'f' that might return either an error
(with some text) or a result (with some value). The problem is
that the type of the error is not the
On Friday, 6 November 2020 at 14:20:40 UTC, Andrey Zherikov wrote:
On Friday, 6 November 2020 at 12:03:01 UTC, Paul Backus wrote:
You can't. Both return values have to have the same type,
which means the failure function has to be able to return more
than one type, which means it has to be a
On Saturday, 31 October 2020 at 22:42:20 UTC, James Blachly wrote:
So I've been meaning to ask this as I have been learning Rust
off-and-on recently for web development, and was impressed by
the traits functionality. In particular, with traits and some
agreed upon API, many packages are
On Thursday, 3 September 2020 at 15:12:14 UTC, Steven
Schveighoffer wrote:
int[int] aa;
aa[4] = 5;
auto b = aa[4];
How is this code broken? It's valid, will never throw, and
there's no reason that we should break it by adding an
exception into the mix.
int foo() nothrow {
return
On Tuesday, 1 September 2020 at 18:55:20 UTC, Steven
Schveighoffer wrote:
On 9/1/20 2:20 PM, Jesse Phillips wrote:
Using RangeError is nice as it allows code to use array index
inside `nothrow.`
This is the big sticking point -- code that is nothrow would no
longer be able to use AAs
This is going to be a hard one for me to argue but I'm going to
give it a try.
Today if you attempt to access a key from an associative array
(AA) that does not exist inside the array, a RangeError is
thrown. This is similar to when an array is accessed outside the
bounds.
```
On Friday, 28 August 2020 at 14:36:57 UTC, rikki cattermole wrote:
On 28/08/2020 3:59 AM, Jesse Phillips wrote:
DMD installer still is unable to find "VS installed"
One of the reasons for this is that the environment variables
have not been updated.
You need to res
On Thursday, 27 August 2020 at 15:59:51 UTC, Jesse Phillips wrote:
Upon compiling a 64bit hello world I get
helloworld> dmd -m64 .\hello.d
LINK : fatal error LNK1104: cannot open file 'libucrt.lib'
Error: linker exited with status 1104
I solved this by either installin
Installing D isn't new to me but I haven't really had to do a
fresh install for awhile and come from a time when I was
installing VS from 2010 and up.
VS 2019 Professional is installed on the system.
I have installed the C++ desktop development for VS.
DMD installer still is unable to find
On Saturday, 25 July 2020 at 14:47:01 UTC, aberba wrote:
On Saturday, 25 July 2020 at 13:28:34 UTC, Adam D. Ruppe wrote:
On Saturday, 25 July 2020 at 11:12:16 UTC, aberba wrote:
Oop! Chaining the writeln too could have increased the wow
factor. I didn't see that.
oh I hate it when people do
On Thursday, 9 July 2020 at 20:08:47 UTC, Anonymouse wrote:
On Thursday, 9 July 2020 at 19:53:42 UTC, JN wrote:
void foo(int[int] bar)
{
// ...
}
Is it possible to send an empty array literal?
foo( [ 0 : 2 ] ) works
foo( [] ) doesn't
int[int] empty;
foo(empty);
works but it's two lines
On Saturday, 27 June 2020 at 15:48:33 UTC, Andrei Alexandrescu
wrote:
How to answer "why will yours succeed, when X, Y, and Z have
failed?"
https://www.youtube.com/watch?v=wIHfaH9Kffs
Very insightful talk.
He touches on, why we should have @safe by default and the
importance of the C++
On Thursday, 18 June 2020 at 14:53:58 UTC, aberba wrote:
On Tuesday, 12 December 2017 at 20:51:30 UTC, Steven
Schveighoffer wrote:
On 12/11/17 6:33 PM, Seb wrote:
[...]
Since iopipe was mentioned several times, I will say a couple
things:
[...]
I should really try iopipe this time round.
On Tuesday, 9 June 2020 at 23:53:16 UTC, Q. Schroll wrote:
Is there any particular reason why std.range : enumerate is a
thing
Someone already mentioned dictionary.
Consider that most ranges don't actually have an index. In this
case you aren't actually asking to add indexes, but a count of
On Wednesday, 10 June 2020 at 01:06:30 UTC, aberba wrote:
On Tuesday, 9 June 2020 at 14:23:34 UTC, Jesse Phillips wrote:
I notice that in the new release for Alpine Linux it mentions
support for D.
I was curious what was meant by this and thought someone here
would know. Just high level
I notice that in the new release for Alpine Linux it mentions
support for D.
I was curious what was meant by this and thought someone here
would know. Just high level, like druntime was ported or packages
added to the repo?
On Wednesday, 1 April 2020 at 12:22:48 UTC, Adam D. Ruppe wrote:
On Wednesday, 1 April 2020 at 06:48:09 UTC, Jacob Carlborg
wrote:
You have not enabled optimizations. You should compile with
`-O -release -inline` to enable all optimizations.
-release should *never* be used. You're trading
On Saturday, 7 March 2020 at 01:14:14 UTC, Jesse Phillips wrote:
Now I should look at getting the CI up and Test failure fixed.
Test failures were my local system and related to the stack
overflow tests.
I have the build pipeline up and running but hit a couple of
snags.
https
On Friday, 7 February 2020 at 19:37:08 UTC, mark wrote:
I am porting code from other languages to D as part of learning
D, and I find I've used sets quite a lot. AFAIK D doesn't have
a built-in set type or one in the std. lib.
However, I've been perfectly successfully using int[E] where E
is
On Thursday, 5 March 2020 at 16:54:35 UTC, AB wrote:
I am only guessing, but I think the problem is line 87.
Arrays and slices in D contain a length field and thus do not
need to be null terminated.
The foreach at line 96 iterates on all valid indices and thus
in the last iteration you call
I am making an attempt convert Lua to D. This is less about the
conversion and more about exploring the tooling to make it happen.
I have chosen to do this file by file and attempting to start
with linint. I wanted to make use of dpp, however I hit a
segmentation fault and reduced dependency.
On Monday, 10 February 2020 at 02:30:35 UTC, Steven Schveighoffer
wrote:
This makes me sad:
https://gitlab.com/jessephillips/devarticlator/-/blob/6e791751c17490ebf4930af428bdd2fafa7e9a34/source/util/file.d#L16
I also feel bad because I feel like I'm skipping out on all of
the benefit of
I would like to announce a project started with the intention of
moving my articles into git. I've been writing[1] about the
progress and today I got through pulling all of user articles.
devtoarticlator 0.1.0[2] will write out you dev.to articles and
their Metadata into a folder. The meta is
On Tuesday, 28 January 2020 at 16:09:55 UTC, Steven Schveighoffer
wrote:
Everything is pulled with iopipe, even output, so it's just a
matter of who is pulling and when. Pushing is a matter of
telling the other end to pull.
-Steve
That statement I think will be very helpful to me.
The
On Monday, 27 January 2020 at 18:12:40 UTC, Steven Schveighoffer
wrote:
Before I show you what to do, let me explain what the above
actually does.
1. You constructed a buffer of characters. Good, this is the
first step.
2. You used encodeText to convert the data to ubyte. Note that
for char
On Monday, 27 January 2020 at 01:50:00 UTC, Jesse Phillips wrote:
Just as I'm hitting send the part I'm missing clicked:
I needed to add the text encoding because my buffer is `char`
but File writes `ubyte`
```dlang
auto output() {
return std.io.File("somefile.txt"
Just as I'm hitting send the part I'm missing clicked:
I needed to add the text encoding because my buffer is `char` but
File writes `ubyte`
```dlang
/+ dub.sdl:
name "iobuftofile"
dependency "iopipe" version="~>0.1.7"
dependency "io" version="~>0.2.4"
+/
void main() {
import
I'd like to start utilizing IOPipe[1] more. Right now I have an
interest in utilizing it for buffering output (actually I don't
have a need for buffering, I just want to utilize iopipe)
Looking through some different examples[2][3] I thought I would
have something with this:
```dlang
/+
On Friday, 24 January 2020 at 16:21:48 UTC, Jan Hönig wrote:
I am looking for a detailed explanation or showcase regarding
CTFE and string mixins.
I want to play with D a little bit regarding code generation.
I would like to have a pseudo-AST, consisting of a few classes,
to represent some
On Wednesday, 15 January 2020 at 19:50:31 UTC, mark wrote:
I really do need a set for the next part of the program, but
taking your code and ideas I have now reduced the function to
this:
WordSet getWords(string filename, int wordsize) {
WordSet words;
File(filename).byLine
You can also turn your function into a fold.
auto searches = ["1", "2"];
writeln (searches.fold!((a, b) => a.substitute(b,
"number").to!string)("come 1 come 2")) ;
On Saturday, 11 January 2020 at 17:10:02 UTC, Martin Brezl wrote:
Hi,
i have a function like this:
```
import std.algorithm.iteration : substitute;
//...
string replace(string content, string[] searches , string
replace) {
if(searches.empty) return content;
auto
On Friday, 13 December 2019 at 15:35:24 UTC, mipri wrote:
It might help your blog posts to use drepl in your examples:
https://code.dlang.org/packages/drepl
That is nice. Is there a web frontend? Rightnow I am using
run.dlang.io from my phone. Prior to that I didn't compile
anything.
I had mentioned my take on list comprehension here:
https://forum.dlang.org/post/qslt0q$2dnb$1...@digitalmars.com#post-ycbohbqaygrgmidyhjma:40forum.dlang.org
However someone put together a more comprehensive tutorial of its
power. So I took the opportunity to demonstrate the parallel in D.
On Friday, 22 November 2019 at 04:10:23 UTC, FireController#1847
wrote:
I'm an extreme beginner to DLang (just started using it.. oh,
an hour ago?), and I already can't figure out a, what I'd
consider, fairly simplistic thing.
This is my current code:
module DTestApp1;
import std.stdio;
On Sunday, 3 November 2019 at 16:48:52 UTC, Vinod K Chandran
wrote:
On Sunday, 3 November 2019 at 14:01:03 UTC, Jesse Phillips
https://github.com/Rayerd/dfl
@Jesse Phillips,
Thank you for the reply. Does DWT is built upon Java's SWT ? I
heard that SWT is somewhat slower in windows. Anyhow
On Saturday, 2 November 2019 at 20:01:27 UTC, Vinod K Chandran
wrote:
Hi all,
I just found that DFL gui library very interesting. But after
some searching, i can see that DFL is inactive and there is few
other forks for it. So this is my question - Which fork is good
for a gui development in
On Monday, 14 October 2019 at 11:14:50 UTC, Ron Tarrant wrote:
Hi all,
I've been thinking about how to take GtkDcoding to the next
level and one idea is to use (favourable) comments made here on
the forum to help promote the blog.
So, since I'm not clear on copyright law and how it affects
As noted in this announcement, I started writing some basic
tutorials for D.
https://forum.dlang.org/post/efpyegvrezybdrmug...@forum.dlang.org
At a post a week, I've got 10 weeks of backlog posts. One of
these is a post on input output piping.
I came across this dev related article/blog platform through
Google's news feed.
Recently I started building out little how to articles for D
based on my recent Python searches.
https://dev.to/t/dlang
I have a number in my backlog to be released. Currently most
everything in that tag I
On Wednesday, 28 August 2019 at 20:56:25 UTC, Machine Code wrote:
I was writing a recursive function that uses template, I
thought it would generate the proper template function on the
fly to match the type in the parameter but it seems to not so
so and try to use the called function,
On Tuesday, 30 July 2019 at 14:34:19 UTC, aliak wrote:
On Tuesday, 30 July 2019 at 12:58:08 UTC, Jesse Phillips wrote:
On Monday, 29 July 2019 at 22:17:20 UTC, aliak wrote:
* NotNull has been removed
Why was it removed. It seems like this would be nice to have
for class and pointers.
I
On Monday, 29 July 2019 at 22:17:20 UTC, aliak wrote:
* NotNull has been removed
Why was it removed. It seems like this would be nice to have for
class and pointers.
On Wednesday, 26 June 2019 at 14:58:08 UTC, Basile B. wrote:
On Wednesday, 26 June 2019 at 09:40:06 UTC, JN wrote:
On Wednesday, 26 June 2019 at 05:38:32 UTC, Jesse Phillips
wrote:
Sometimes a good API isn't the right answer. I like getopt as
it is but I wanted a little different control. So I
On Wednesday, 26 June 2019 at 09:40:06 UTC, JN wrote:
On Wednesday, 26 June 2019 at 05:38:32 UTC, Jesse Phillips
wrote:
Sometimes a good API isn't the right answer. I like getopt as
it is but I wanted a little different control. So I wrote up
an article on my work around.
https://dev.to
Sometimes a good API isn't the right answer. I like getopt as it
is but I wanted a little different control. So I wrote up an
article on my work around.
https://dev.to/jessekphillips/argument-parsing-into-structure-4p4n
I have another technique for sub commands I should write about
too.
On Saturday, 23 March 2019 at 03:06:37 UTC, Walter Bright wrote:
Many thanks to Sebastian Wilzbach, Nicholas Wilson, Mike
Franklin, and others!
It's been a long and often frustrating endeavor, but we made it
and I'm very pleased with the results.
Status: Superseded
On Friday, 1 March 2019 at 11:38:51 UTC, BoQsc wrote:
"And indeed rdmd won't call your script if it doesn't have the
proper extension."
Then why does Dlang Tour includes shebang: #!/usr/bin/env rdmd
Instead of the one you mentioned, that is fool proof.
(#!/bin/dmd -run)
Is that an
On Thursday, 24 January 2019 at 15:28:19 UTC, Suliman wrote:
I am doing very small link-checker. Here is' code
https://run.dlang.io/is/p8whrA
I am expecting that on line:
writefln("url: %s, status: %s", url.url, url.status);
I will print link and it's status. But I am getting only:
url:
On Sunday, 6 January 2019 at 00:20:40 UTC, Samir wrote:
[1] https://news.ycombinator.com/item?id=18832155
[2] https://en.wikipedia.org/wiki/IEEE_754
Since you got your answer you may also like
http://dconf.org/2016/talks/clugston.html
On Wednesday, 17 October 2018 at 16:14:14 UTC, Neia Neutuladh
wrote:
On Wednesday, 17 October 2018 at 14:02:20 UTC, Jesse Phillips
wrote:
Wait, why does each get a special bailout? Doesn't until full
that role?
`until` is lazy. We could have `doUntil` instead, which would
be eager and would
On Wednesday, 17 October 2018 at 12:14:55 UTC, Martin Nowak wrote:
Glad to announce the first beta for the 2.083.0 release, ♥ to
the 48 contributors for this release.
http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.083.0.html
Wait, why does each get a special bailout?
On Friday, 12 October 2018 at 19:43:25 UTC, Sebastiaan Koppe
wrote:
I like to announce Spasm https://github.com/skoppe/spasm
It is a webassembly library to develop single page applications
and builds on my previous work
This is really interesting. I don't do web development myself and
On Friday, 14 September 2018 at 05:41:41 UTC, rmc wrote:
I do wonder if `dmd` by itself on the command line works. Could
it be some sort of 32 bit bug in the latest release of dmd?
Relating to argc/argv.
"source/dub/compilers/compiler.d(127)"
That doesn't look like DMD source code.
On Monday, 10 September 2018 at 09:23:19 UTC, SuperPrower wrote:
dub was working nice until I updated my system (I run
ArchLinux32) just now. dmd was updated from version
1:2.081.2-1.0 to 1:2.082.0-1.0 (according to pacman package
manager). After that, I couldn't invoke dub for anything. Here
On Wednesday, 22 August 2018 at 08:33:36 UTC, Andrey wrote:
Hello,
I know that D has build-in unit tests. If so, what mechanism D
provides for mocking objects?
I'd like to pose the question, what are you testing. This looks
like you are testing that your mocked object returns 10. I
usually
On Thursday, 23 August 2018 at 09:26:46 UTC, rikki cattermole
wrote:
On 23/08/2018 9:09 PM, Shachar Shemesh wrote:
functions may be @safe, nothrow, @nogc, pure. If it's a method
it might also be const/inout/immutable, static. The number of
libraries that support all combinations is exactly
On Wednesday, 22 August 2018 at 05:05:48 UTC, Neia Neutuladh
wrote:
The dlang bugzilla and forum are both hosted on dlang-specific
servers. If they go down, it's easy to get a replica and get
back up and running in a few hours. Same with the wiki.
If github went down or banned the dlang org,
On Tuesday, 21 August 2018 at 19:25:14 UTC, Walter Bright wrote:
With the NNTP, git, and bugzilla, we all have backups under our
control.
I just don't see why it is a concern[1]:
"So we set out to look for a new home for our data dumps, and
today we’re happy to announce that the Internet
On Monday, 20 August 2018 at 02:30:16 UTC, binghoo dang wrote:
hi,
I thinks D need an ORM library for Sqlite/Mysql/PostgreSQL,
entity currently support all the three targets, but entity's
API is too complex and cumbersome for using.
Is there a more light-weight and simpler implementation
On Friday, 27 July 2018 at 03:41:29 UTC, Sameer Pradhan wrote:
Therefore, after reading the word "Extension" in three
different contexts, I started wondering and various questions
came to mind, starting with---Whence came UFCS?
The answer I always say back in the day for the functionality was
So I have a tool chain developed utilizing D. It is kind of like
a Linter for what my company does. I started its development back
in 2009 as a POC for why the company should pursue such a
concept. That didn't work and I've been utilizing and had a few
people pick it up and gain value from it.
I plan to eventually finish the JSON parser for a releasable
state, and eventually tackle XML and a few other things.
-Steve
You should definitely tackle xml by branching dxml. I'm really
liking the api.
On Sunday, 3 June 2018 at 12:08:44 UTC, aliak wrote:
The exact error for that setup is:
source/app.d(4,9): Error: module `liba` is in file 'lib/liba.d'
which cannot be read
import path[0] = source/
import path[1] = ../lib/liba/source/
import path[2] = ../lib/libb/source/
import path[3] =
On Thursday, 31 May 2018 at 17:56:57 UTC, aliak wrote:
On Thursday, 31 May 2018 at 13:54:07 UTC, Jesse Phillips wrote:
On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote:
Hi, I'm trying to get dub working with subpackages and I just
can't quite seem to hit the nail on the head. Any help
On Tuesday, 29 May 2018 at 23:41:59 UTC, aliak wrote:
Hi, I'm trying to get dub working with subpackages and I just
can't quite seem to hit the nail on the head. Any help would be
greatly appreciated.
Move your sub packages out of source. And each package will have
it's own src folder, which
On Wednesday, 16 May 2018 at 13:33:45 UTC, KingJoffrey wrote:
On Wednesday, 16 May 2018 at 13:09:22 UTC, Jesse Phillips wrote:
That isn't a bug. What is the software use case? How did this
case differ because someone did this?
Sorry, I didn't realise my example was so complex.
Hang
On Wednesday, 16 May 2018 at 02:05:29 UTC, KingJoffrey wrote:
On Tuesday, 15 May 2018 at 15:19:33 UTC, Jesse Phillips wrote:
On Tuesday, 15 May 2018 at 10:19:58 UTC, KingJoffrey wrote:
My own code in D had bugs, cause I didn't realise all my
private parts were not just visible, but accessible
On Tuesday, 15 May 2018 at 10:19:58 UTC, KingJoffrey wrote:
My own code in D had bugs, cause I didn't realise all my
private parts were not just visible, but accessible by all the
so called 'friends' around me. They could reach in a do
whatever they want! Without my consent!
You've peaked my
On Sunday, 13 May 2018 at 07:42:10 UTC, Suliman wrote:
Could anybody give small example of Dependency injection
pattern? I googled about it, but found only C# examples and I
am not quite sure how to use them.
Also I would like get some explanation/comments for code.
Here is a quick example
On Thursday, 10 May 2018 at 15:18:56 UTC, Bastiaan Veelo wrote:
How about extending the behaviour of ‘private’, which means
private except for this module, to ‘final’, which would then
allow sub typing in the same module but not outside? It would
not break any code. Are there downsides to
On Wednesday, 9 May 2018 at 13:22:56 UTC, bauss wrote:
Using "auto" you can also have multiple return types.
auto foo(T)(T value)
{
static if (is(T == int)) return "int: " ~ to!string(value);
else return value;
}
You cannot give that function a specific return type as it's
either T or
On Tuesday, 8 May 2018 at 18:38:10 UTC, BoQsc wrote:
Tested with these versions so far, and had all the same errors:
C:\Users\Vaidas>dmd --version
DMD32 D Compiler v2.079.1
C:\Users\Vaidas>dub --version
DUB version 1.8.1, built on Apr 14 2018
C:\Users\Vaidas>dmd --version
DMD32 D Compiler
On Tuesday, 8 May 2018 at 16:34:53 UTC, BoQsc wrote:
On Tuesday, 8 May 2018 at 16:18:27 UTC, bachmeier wrote:
On Tuesday, 8 May 2018 at 12:13:56 UTC, BoQsc wrote:
This is the code example, that was presented on the
https://dlang.org frontpage:
Maybe that isn't the best choice of beginner
1 - 100 of 2086 matches
Mail list logo