On 28/04/2018 7:17 AM, w0rp wrote:
Hello everyone! I haven't written a post in a long time. I love D, and
I've been a D hobbyist for years now. Though I haven't written any D in
a long time, I keep an eye on the changelogs and such. More recently
I've been using TypeScript (TS) at work for
On Friday, 27 April 2018 at 02:59:16 UTC, Dr.No wrote:
In C# you can have a readonly member assignable either at
declaration or constructor time, like this:
class C
{
readonly myClass mc;
this()
{
mc = new myClass();
}
void doSomething()
{
mc = new myClass(); // wrong!
On Thursday, 26 April 2018 at 23:26:30 UTC, Walter Bright wrote:
Besides, redundancy can make a program easier to read (English
has a lot of it, and is hence easy to read).
I completely agree. I always make an effort to make my sentences
as redundant as possible such that they can be easily
https://issues.dlang.org/show_bug.cgi?id=18806
Issue ID: 18806
Summary: minIndex should be able to take an input range but
does not
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
On Friday, 27 April 2018 at 19:17:14 UTC, w0rp wrote:
* Writing `(InputRange r)` instead of `(T)(T r) if
(isInputRange!T)` would be a nice improvement, and writing
something like this hypothetical `InputRange` concept could be
a lot easier, somehow. (C++20 might finally include concepts.)
On 04/27/2018 06:29 AM, Chris wrote:
On Thursday, 26 April 2018 at 02:31:07 UTC, Nick Sabalausky (Abscissa)
wrote:
On 04/25/2018 05:49 AM, Chris wrote:
Well yea, all the hipster nerds say Google is God and Chrome is what
you should be using, so it must be so. ;)
At the very least, I just
https://issues.dlang.org/show_bug.cgi?id=18805
Issue ID: 18805
Summary: crash in iteration.d
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: major
Priority: P1
Hello everyone! I haven't written a post in a long time. I love
D, and I've been a D hobbyist for years now. Though I haven't
written any D in a long time, I keep an eye on the changelogs and
such. More recently I've been using TypeScript (TS) at work for
front end code. TypeScript is a very
On Friday, 27 April 2018 at 17:57:26 UTC, Vino.B wrote:
headers.insert(to!string(Base64.encode(Content)) ~ ".\r\n");
headers.insert("--" ~ boundary ~ ".");
what are those random dots for?
Hi All,
Request your help, the below code is working as expected, but
when I receive the attachment, the attachment contains the
orginal text plus some unwanted characters like below, can
someone help me how to remove these unwanted characters.
Unwanted characters
This is a test
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Release candidate available now.
http://dlang.org/changelog/2.080.0.html
http://dlang.org/download.html#dmd_beta
- -Martin
-BEGIN PGP SIGNATURE-
iQIzBAEBCgAdFiEEpzRNrTw0HqEtE8TmsnOBFhK7GTkFAlrjYAYACgkQsnOBFhK7
On 04/23/2018 02:53 PM, Chris M. wrote:
> Under https://dlang.org/changelog/2.080.0.html#rwm-shared-error
>
> It should be core.atomic.atomicOp instead of atomic.atomicOp.core
Thanks, code that needs fixing is here
On Friday, 27 April 2018 at 14:48:00 UTC, Jesse Phillips wrote:
On Thursday, 26 April 2018 at 16:59:45 UTC, Dr.No wrote:
On Wednesday, 25 April 2018 at 19:25:11 UTC, Jesse Phillips
wrote:
On Wednesday, 25 April 2018 at 17:34:41 UTC, Dr.No wrote:
Is there something implemented already to get
On Friday, 27 April 2018 at 14:57:34 UTC, BoQsc wrote:
On Friday, 27 April 2018 at 04:30:32 UTC, IntegratedDimensions
wrote:
On Thursday, 26 April 2018 at 06:18:25 UTC, BoQsc wrote:
On Wednesday, 25 April 2018 at 20:44:10 UTC, u0_a183 wrote:
On Wednesday, 25 April 2018 at 19:54:26 UTC, BoQsc
On Friday, 27 April 2018 at 15:20:15 UTC, Jacob Carlborg wrote:
On 2018-04-27 09:43, baz@dlang-community wrote:
DCD 0.9.4 is available now. Same link.
How come there are no binaries for macOS? Seems to be a release
script and Travis CI configuration for macOS.
Because the DCD release
Dear,
After to build the llvm lib from
https://github.com/thewilsonator/llvm . I tried to build ldc2
with v1.9-beta1
/ldc2-1.9/tools/ldc-profdata/llvm-profdata-5.0.cpp:175:6: error:
no matching function for call to
On 2018-04-27 12:56, Rel wrote:
So, okey, bare with me here. As I once told here before the only one
thing I love about Golang is the ability to easily cross-compile code
from any supported OS targeting any supported OS. So I was thinking what
actually stops DMD from doing the same thing? DMD
https://issues.dlang.org/show_bug.cgi?id=18804
Issue ID: 18804
Summary: Side effects incorrectly optimized out when results
are discarded
Product: D
Version: D2
Hardware: x86
OS: Windows
Status:
On Friday, 27 April 2018 at 00:18:05 UTC, H. S. Teoh wrote:
On Thu, Apr 26, 2018 at 04:26:30PM -0700, Walter Bright via
Digitalmars-d wrote: [...]
[...]
People often complain about how redundant natural languages
are... not realizing that it actually provides, in addition to
being easier to
On 2018-04-27 09:43, baz@dlang-community wrote:
DCD 0.9.4 is available now. Same link.
How come there are no binaries for macOS? Seems to be a release script
and Travis CI configuration for macOS.
--
/Jacob Carlborg
On 2018-04-25 16:13, Seb wrote:
Hi all,
I hope you are all looking forward to DConf.
We (Stefan, Dragos and I) have very good news for you.
Our next D Munich Meetup will coincide with DConf to give our local
community who can't join DConf an opportunity to meetup all the
rockstars from the D
https://issues.dlang.org/show_bug.cgi?id=18803
Issue ID: 18803
Summary: just "static if" in nested import crashes dmd
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
On Fri, Apr 27, 2018 at 06:22:55AM +, sarn via Digitalmars-d wrote:
[...]
> The first Haskell tutorial I read was written by someone who thought
> it would be cute to do mathsy typesetting of all the syntax. E.g., ->
> became some right arrow symbol, meaning that nothing the book taught
>
On Friday, 27 April 2018 at 04:30:32 UTC, IntegratedDimensions
wrote:
On Thursday, 26 April 2018 at 06:18:25 UTC, BoQsc wrote:
On Wednesday, 25 April 2018 at 20:44:10 UTC, u0_a183 wrote:
On Wednesday, 25 April 2018 at 19:54:26 UTC, BoQsc wrote:
On Wednesday, 25 April 2018 at 19:43:31 UTC,
On Thursday, 26 April 2018 at 16:59:45 UTC, Dr.No wrote:
On Wednesday, 25 April 2018 at 19:25:11 UTC, Jesse Phillips
wrote:
On Wednesday, 25 April 2018 at 17:34:41 UTC, Dr.No wrote:
Is there something implemented already to get the files from
directory by name using D or I'm on my own and I
On Friday, 27 April 2018 at 13:43:47 UTC, Timoses wrote:
`instantiateWith` gets called in three variations (menum.A,
menum.B and menum.C). This causes instantiateWith to return
TempStruct for each case of Temp...
However, I was under the impression that a templated function
will exist
On Friday, 27 April 2018 at 09:07:31 UTC, Pasqui23 wrote:
I want a library that offers an in-memory data structure,such
that I can write,for example:
cache.insert(key,value,expiry)
and I can retrieve the value with something like
cache[key],unless it has passed expiry seconds.
Can be
On Friday, 27 April 2018 at 13:39:22 UTC, Simen Kjærås wrote:
That's an unfortunate error message. The problem is TempStruct
is defined inside the Temp template. In the same way that
struct Foo(T) {} is different for Foo!int and Foo!string,
TempStruct is a different type for Temp!(menum.A) and
On Friday, 27 April 2018 at 13:27:45 UTC, Timoses wrote:
Bumped across another problem : /
```
import std.stdio;
enum menum { A, B, C }
void main()
{
foo(menum.A);
}
void foo(menum e)
{
writeln(instantiateWith!Temp(e));
}
auto instantiateWith(alias Fn, T)(T x)
if (is(T == enum))
https://issues.dlang.org/show_bug.cgi?id=18267
Mike Franklin changed:
What|Removed |Added
CC||slavo5...@yahoo.com
Bumped across another problem : /
```
import std.stdio;
enum menum { A, B, C }
void main()
{
foo(menum.A);
}
void foo(menum e)
{
writeln(instantiateWith!Temp(e));
}
auto instantiateWith(alias Fn, T)(T x)
if (is(T == enum))
{
switch (x)
{
import std.traits :
https://issues.dlang.org/show_bug.cgi?id=18802
Issue ID: 18802
Summary: [REG2.080] Safe block causing lifetime problem
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
On Thursday, 26 April 2018 at 18:16:01 UTC, FreeSlave wrote:
Most dub packages are libraries and should provide runnable
examples.
What's the current idiomatic way to add examples?
IMO the most simple way (and the best too) is to put single file
packages in the example folder, so that an
On Friday, 27 April 2018 at 10:18:10 UTC, Dechcaudron wrote:
On Friday, 27 April 2018 at 09:57:03 UTC, Adam Wilson wrote:
As always, PR's are welcome.
Link to repo?
You can find it at DUB (code.dlang.org):
https://code.dlang.org/packages/secured
27.04.2018 13:58, Laurent Tréguier пишет:
This is the way Rust packages handle their Cargo.lock file, if I'm not
mistaken, and it seems reasonable to me
Exactly
So, okey, bare with me here. As I once told here before the only
one thing I love about Golang is the ability to easily
cross-compile code from any supported OS targeting any supported
OS. So I was thinking what actually stops DMD from doing the same
thing? DMD has own backends targeting X86
On Friday, 27 April 2018 at 10:18:53 UTC, drug wrote:
dub.selections.json shouldn't be included in case of library
because it should be configured at import site. in case of
application it has been configured and so dub.selections.json
should be included. IMHO.
This is the way Rust packages
On Thursday, 26 April 2018 at 02:31:07 UTC, Nick Sabalausky
(Abscissa) wrote:
On 04/25/2018 05:49 AM, Chris wrote:
Well yea, all the hipster nerds say Google is God and Chrome is
what you should be using, so it must be so. ;)
At the very least, I just wish there was a good choice. Mozilla
On Thursday, 26 April 2018 at 16:46:11 UTC, Simen Kjærås wrote:
The only step you're missing is the template needs to be
instantiated inside the static foreach, like this:
auto instantiateWith(alias Fn, T)(T x)
if (is(T == enum))
{
import std.traits : EnumMembers;
switch (x)
{
26.04.2018 21:16, FreeSlave пишет:
Most dub packages are libraries and should provide runnable examples.
What's the current idiomatic way to add examples? I used sub-packages
with dependency on the library and "*" as version and running them as
dub run :examplename
Now I've noticed vibed uses
On Friday, 27 April 2018 at 09:57:03 UTC, Adam Wilson wrote:
As always, PR's are welcome.
Link to repo?
Hello!
I am pleased to announce that after a year of development and
stabilization SecureD has been released in stable form. The most recent
release consists of an upgrade to OpenSSL 1.1 in order to be compliant
with more recent and supported versions of OpenSSL. If you need to use
OpenSSL
I want a library that offers an in-memory data structure,such
that I can write,for example:
cache.insert(key,value,expiry)
and I can retrieve the value with something like
cache[key],unless it has passed expiry seconds.
Can be done?What library should I use?
On Thursday, 26 April 2018 at 10:06:57 UTC, JN wrote:
On Wednesday, 25 April 2018 at 19:19:58 UTC, BoQsc wrote:
Alternatively, I don't know about specifics how to implement it
in D, but the key phrase you are looking for is "code hotswap"
or "hot loading". It's being popularized right now in
https://issues.dlang.org/show_bug.cgi?id=14536
Simen Kjaeraas changed:
What|Removed |Added
CC|
On Monday, 23 April 2018 at 17:04:09 UTC, Baz @dlang-community
wrote:
Time to update your favorite D completion daemon and D linter
since previous patch were not announced.
Changelogs:
- https://github.com/dlang-community/DCD/releases
- https://github.com/dlang-community/D-Scanner/releases
On Thursday, 26 April 2018 at 23:06:54 UTC, Nicholas Wilson wrote:
On Thursday, 26 April 2018 at 22:51:59 UTC, bioinfornatics
wrote:
Dear,
Dcompute: https://github.com/libmir/dcompute need a SPIRV
capable LLVM.
For this Dcompute project show
https://github.com/thewilsonator/llvm as a SPIRV
On Friday, 27 April 2018 at 04:06:52 UTC, Nick Sabalausky
(Abscissa) wrote:
One of the items on my bucket list is to write a "CS Theory for
Programmers" book that actually fills in all this stuff, along
with going easy on the math-theory syntax that you can't
realistically expect programmers
48 matches
Mail list logo