On Tuesday, August 09, 2016 05:13:44 cy via Digitalmars-d-learn wrote:
> I really like UFCS, which is to say, defining functions outside
> the class/struct to operate on it, but you can still say
> object.function(...) and it'll get rewritten into
> function(object,...).
>
> Only sticky point is
I really like UFCS, which is to say, defining functions outside
the class/struct to operate on it, but you can still say
object.function(...) and it'll get rewritten into
function(object,...).
Only sticky point is the convenience of "this". Like I can go
struct A {
bool a;
https://issues.dlang.org/show_bug.cgi?id=16261
dushibaiyu changed:
What|Removed |Added
CC||dushiba...@yahoo.com
---
On Monday, 8 August 2016 at 04:24:45 UTC, Adam D. Ruppe wrote:
I decided to write up a think on untrapping exceptions this
week:
http://arsdnet.net/this-week-in-d/2016-aug-07.html
Next week I'll prolly talk about calling D from Ruby. Last
week, we had a status report from Stefan Koch on his
On 8/8/2016 8:02 PM, Emre Temelkuran wrote:
If you don't do it, you will suffer the consequences.
Don't threaten people here, even in jest.
On Mon, 08 Aug 2016 19:26:25 +, Meta wrote:
> On Monday, 8 August 2016 at 17:16:52 UTC, H. S. Teoh wrote:
>> I have never understood how popularity has anything to do with quality.
>
> It isn't; see: Javascript, Go. The only thing we have to understand is
> that how popular people perceive a
On Monday, 8 August 2016 at 22:53:48 UTC, Isaac Gouy wrote:
On Monday, 8 August 2016 at 17:11:54 UTC, Meta wrote:
Despite the fact that comparing benchmarks across languages
tells you very little about how "fast" that language is …
Doing so would at-least offer something for people to
On Tuesday, August 09, 2016 01:07:53 Gerald via Digitalmars-d-learn wrote:
> I have a RegexMatch that I want to pass to a function that takes
> the match and replaces various tokens in a string with the match
> and/or individual groups of the match. I'm struggling to figure
> out how to pass a
I have a RegexMatch that I want to pass to a function that takes
the match and replaces various tokens in a string with the match
and/or individual groups of the match. I'm struggling to figure
out how to pass a RegexMatch to a function, right now I have code
like the follows:
RegexMatch
On Monday, August 08, 2016 19:42:50 Seb via Digitalmars-d wrote:
> Hi all,
>
> today Johannes and I had a short discussion on Github about
>
> std.base64. I think his post is a good summary of the status quo:
> > base64 shouldn't be a top level module though, moving it to a
> > new package
On 08/09/2016 12:05 AM, Alexsej wrote:
//header from server
server: nginx
date: Mon, 08 Aug 2016 22:02:15 GMT
content-type: text/xml; Charset=utf-8
content-length: 204
connection: keep-alive
vary: Accept-Encoding
cache-control: private
expires: Mon, 08 Aug 2016 22:02:15 GMT
set-cookie:
On Monday, 8 August 2016 at 22:59:27 UTC, jmh530 wrote:
On Thursday, 21 July 2016 at 16:35:44 UTC, Ali Çehreli wrote:
Stealing the opportunity to announce this news... :)
https://www.youtube.com/playlist?list=PL3jwVPmk_PRyTWWtTAZyvmjDF4pm6EX6z
Reddit:
On Monday, 8 August 2016 at 17:11:54 UTC, Meta wrote:
Despite the fact that comparing benchmarks across languages
tells you very little about how "fast" that language is …
Doing so would at-least offer something for people to consider.
On Monday, 8 August 2016 at 21:11:26 UTC, ag0aep6g wrote:
On 08/08/2016 09:57 PM, Alexsej wrote:
// content in ISO-8859-1 to UTF-8 encoding but I lose
//the Cyrillic "отсутствует или неверно задан параметр"
// I get it "оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð»Ð¸ невеÑно
задан
On 08/08/2016 11:11 PM, ag0aep6g wrote:
Why on earth does transcode only accept immutable characters for input?
https://github.com/dlang/phobos/pull/4722
On Monday, 8 August 2016 at 21:11:26 UTC, ag0aep6g wrote:
On 08/08/2016 09:57 PM, Alexsej wrote:
// content in ISO-8859-1 to UTF-8 encoding but I lose
//the Cyrillic "отсутствует или неверно задан параметр"
// I get it "оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð»Ð¸ невеÑно
задан
I have a rather large array that I intend to build. but much of it will
only occasionally be used. Will the unused sections automatically be
paged out? If it matters my system is Debian Linux.
This array will be indexed by a ulong. Is there any reasonable maximum
size? I've considered
On 08/08/2016 09:57 PM, Alexsej wrote:
// content in ISO-8859-1 to UTF-8 encoding but I lose
//the Cyrillic "отсутствует или неверно задан параметр"
// I get it "оÑÑÑÑÑÑвÑÐµÑ Ð¸Ð»Ð¸ невеÑно
задан паÑамеÑÑ"
// How do I change the encoding to UTF-8
On 08/08/16 06:24, Adam D. Ruppe wrote:
I decided to write up a think on untrapping exceptions this week:
http://arsdnet.net/this-week-in-d/2016-aug-07.html
How to detect if running inside a debugger on OS X [1].
[1] https://developer.apple.com/library/ios/qa/qa1361/_index.html
--
/Jacob
https://issues.dlang.org/show_bug.cgi?id=16348
--- Comment #4 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/93c3dcf26f5c5ae612ccce044012d2b297fe46bf
fix Issue 16348 - ICE with package visibility
- fix scopesym
On Monday, 8 August 2016 at 19:42:50 UTC, Seb wrote:
...
Also see https://github.com/dlang/phobos/pull/4599 for more
discussion on why std.encoding's current design is problematic,
and why it should probably be redesigned.
On 08.08.2016 21:48, Adil wrote:
On Monday, 8 August 2016 at 18:45:35 UTC, drug007 wrote:
On 08.08.2016 21:35, Adil wrote:
On Monday, 8 August 2016 at 18:29:54 UTC, Adil wrote:
[...]
One minor addition. I use the Makefile in our CI tool, that inserts
auto-increment numbers in place of git
On Monday, 8 August 2016 at 19:42:50 UTC, Seb wrote:
Hi all,
today Johannes and I had a short discussion on Github about
std.base64. I think his post is a good summary of the status
quo:
base64 shouldn't be a top level module though, moving it to a
new package std.encoding may be a good
import std.stdio;
import std.net.curl;
void main()
{
string url = "www.site.ru/xml/api.asp";
string data =
"
59538
...
";
auto http = HTTP();
On Monday, 8 August 2016 at 17:16:52 UTC, H. S. Teoh wrote:
On Mon, Aug 08, 2016 at 05:11:54PM +, Meta via
Digitalmars-d wrote: [...]
Despite the fact that comparing benchmarks across languages
tells you very little about how "fast" that language is,
people still routinely ask why D isn't
On Monday, 8 August 2016 at 18:45:35 UTC, drug007 wrote:
On 08.08.2016 21:35, Adil wrote:
On Monday, 8 August 2016 at 18:29:54 UTC, Adil wrote:
[...]
One minor addition. I use the Makefile in our CI tool, that
inserts
auto-increment numbers in place of git hashes. Numbers are a
familiar.
On 08.08.2016 21:35, Adil wrote:
On Monday, 8 August 2016 at 18:29:54 UTC, Adil wrote:
I have a Makefile setup that I use to return the latest git tag/commit
from within my program. The setup is as below:
VERSIONED_LIB = myversion.d && rm -f myversion.d
VERSION_STRING ?= $(shell git
On Monday, 8 August 2016 at 18:29:54 UTC, Adil wrote:
I have a Makefile setup that I use to return the latest git
tag/commit from within my program. The setup is as below:
VERSIONED_LIB = myversion.d && rm -f myversion.d
VERSION_STRING ?= $(shell git rev-parse --short HEAD)
makeVersion:
I have a Makefile setup that I use to return the latest git
tag/commit from within my program. The setup is as below:
VERSIONED_LIB = myversion.d && rm -f myversion.d
VERSION_STRING ?= $(shell git rev-parse --short HEAD)
makeVersion:
echo "module compileConfig; public string
On Monday, 8 August 2016 at 10:36:39 UTC, eugene wrote:
Hello, everyone,
question to you: how do you debug D programs on gnu/linux? and
what ides are you using for debugging?
I only use cgdb (ncurses frontend) or simply gdb.
On Mon, Aug 08, 2016 at 05:11:54PM +, Meta via Digitalmars-d wrote:
[...]
> Despite the fact that comparing benchmarks across languages tells you
> very little about how "fast" that language is, people still routinely
> ask why D isn't represented and then conclude that it can't be that
>
On Monday, 8 August 2016 at 16:37:27 UTC, Isaac Gouy wrote:
On Monday, 8 August 2016 at 00:44:46 UTC, Walter Bright wrote:
On 8/7/2016 10:53 AM, Isaac Gouy wrote:
Rather than only being dismissive,
How did you get from
Yeah, I wouldn't bother with it, either.
to
If you've changed your
On Monday, 8 August 2016 at 00:44:46 UTC, Walter Bright wrote:
On 8/7/2016 10:53 AM, Isaac Gouy wrote:
Rather than only being dismissive,
How did you get from
Yeah, I wouldn't bother with it, either.
to
If you've changed your mind about putting D back on the site,
we'd be happy to help.
On Monday, 8 August 2016 at 00:15:09 UTC, jmh530 wrote:
I think he's referring to a HPC cluster running chapel vs. C++
versions of programs.
Let's not speculate about Russel Winder's comment.
The advantage to Chapel is its simplicity and expressiveness.
That does seem to be the selling
On Monday, 8 August 2016 at 07:09:55 UTC, torea wrote:
On Monday, 8 August 2016 at 05:17:24 UTC, Dave Akers wrote:
I do believe your problem is with the line...
On Monday, 8 August 2016 at 02:44:20 UTC, torea wrote:
string cleanLine = strip( cast(string)line );
It's casting a char[] to
On Monday, 8 August 2016 at 16:14:44 UTC, David Nadlinger wrote:
On Monday, 8 August 2016 at 16:01:29 UTC, Lodovico Giaretta
wrote:
Is this beta available on Travis, or will it be?
The beta is available from https://dlang.org/install.sh as
"ldc-1.1.0-beta2", so it should also be accessible
On Wednesday, 3 August 2016 at 20:12:59 UTC, Kai Nacke wrote:
Hi everyone,
LDC 1.1.0-beta2, the LLVM-based D compiler, is available for
download!
This BETA release is based on the 2.071.1 frontend and standard
library and supports LLVM 3.5-3.9.
We provide binaries for Linux, OX X, FreeBSD,
https://issues.dlang.org/show_bug.cgi?id=15538
--- Comment #2 from Johannes Loher ---
Everything seems to work fine when running the program from within gdb. It also
does not seem to be a problem of final switch, but switch in general. I tried
it with a usual switch
On Monday, 8 August 2016 at 08:24:48 UTC, Alix Pexton wrote:
On 08/08/2016 08:37, Atila Neves wrote:
On Saturday, 6 August 2016 at 10:34:52 UTC, Nicholas Wilson
wrote:
On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote:
[...]
There is a typo in your readme
[...]
shouldBe (!)
On Monday, 8 August 2016 at 09:57:38 UTC, Cauterite wrote:
On Friday, 5 August 2016 at 07:04:55 UTC, deadalnix wrote:
Also, there are nice library solution for named argument
already.
Which ones do you have in mind?
https://github.com/CyberShadow/ae/blob/master/utils/meta/args.d
On Monday, 8 August 2016 at 07:09:55 UTC, torea wrote:
On Monday, 8 August 2016 at 05:17:24 UTC, Dave Akers wrote:
I do believe your problem is with the line...
On Monday, 8 August 2016 at 02:44:20 UTC, torea wrote:
string cleanLine = strip( cast(string)line );
It's casting a char[] to
On Monday, 8 August 2016 at 09:51:03 UTC, Johan Engelen wrote:
On Sunday, 7 August 2016 at 16:52:28 UTC, Stefan Koch wrote:
On Saturday, 6 August 2016 at 23:04:48 UTC, Stefan Koch wrote:
No, not now, but very soon. I want to have _basic_ utf8
support before I am comfortable with enabling
Hello, everyone,
question to you: how do you debug D programs on gnu/linux? and
what ides are you using for debugging?
On Monday, 8 August 2016 at 10:21:47 UTC, ag0aep6g wrote:
Also thanks for submitting the bug for me.
https://issues.dlang.org/show_bug.cgi?id=16085
Martin Nowak changed:
What|Removed |Added
Keywords||pull
--- Comment #12 from
https://issues.dlang.org/show_bug.cgi?id=16348
Martin Nowak changed:
What|Removed |Added
Keywords||pull
--- Comment #3 from
https://issues.dlang.org/show_bug.cgi?id=16348
Martin Nowak changed:
What|Removed |Added
Assignee|nob...@puremagic.com|c...@dawg.eu
--
https://issues.dlang.org/show_bug.cgi?id=15900
Martin Nowak changed:
What|Removed |Added
Keywords||pull
--- Comment #6 from
On 08/08/2016 12:14 PM, Cauterite wrote:
On Monday, 8 August 2016 at 10:05:58 UTC, ag0aep6g wrote:
The first assert compares the return types of f1 and f2. They both
return `void`, so everything's fine there.
I think you're mistaken about this. typeof(S.f1) definitely gives the
type of the
https://issues.dlang.org/show_bug.cgi?id=16086
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu
https://issues.dlang.org/show_bug.cgi?id=15903
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu
https://issues.dlang.org/show_bug.cgi?id=15983
Martin Nowak changed:
What|Removed |Added
CC||c...@dawg.eu
https://issues.dlang.org/show_bug.cgi?id=15877
Martin Nowak changed:
What|Removed |Added
Assignee|nob...@puremagic.com|c...@dawg.eu
--- Comment #2
Am 02.08.2016 um 00:47 schrieb Seb:
> On Monday, 1 August 2016 at 08:53:30 UTC, Kagamin wrote:
>> A bug.
>
> ... which should be filled at Bugzilla and/or fixed. Thanks! :)
I created a pullrequest: https://github.com/dlang/phobos/pull/4720
On 08/08/2016 04:36 AM, Engine Machine wrote:
This really makes no sense
Error: template Mem cannot deduce function from argument types
!(cast(eException)1280L, "main.d", 38u, "main.WinMain")(int), candidates
are:
Mem(T, B = eX, string file = __FILE__, uint line = __LINE__, string func
=
On Monday, 8 August 2016 at 10:05:58 UTC, ag0aep6g wrote:
The first assert compares the return types of f1 and f2. They
both return `void`, so everything's fine there.
I think you're mistaken about this. typeof(S.f1) definitely gives
the type of the function, not of the return. Try it out:
On 08/08/2016 10:30 AM, Cauterite wrote:
See: https://dpaste.dzfl.pl/2ec6780d4b25
That code is short enough to post it here directly. For easier
reference, this is it:
struct S {
void f1() {
auto x =
};
static void f2() {
https://issues.dlang.org/show_bug.cgi?id=16365
--- Comment #1 from ag0ae...@gmail.com ---
(In reply to ag0aep6g from comment #0)
> S s;
> void delegate(immutable int*, int*) @safe d =
> void function(immutable int*, int*) @safe f = d.funcptr; /* uh-oh */
Can also use `f = ` to
https://issues.dlang.org/show_bug.cgi?id=16365
Issue ID: 16365
Summary: cannot allow calling function pointer from delegate in
@safe code
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status:
On Friday, 5 August 2016 at 07:04:55 UTC, deadalnix wrote:
Also, there are nice library solution for named argument
already.
Which ones do you have in mind?
On Sunday, 7 August 2016 at 16:52:28 UTC, Stefan Koch wrote:
On Saturday, 6 August 2016 at 23:04:48 UTC, Stefan Koch wrote:
No, not now, but very soon. I want to have _basic_ utf8
support before I am comfortable with enabling string
operations.
Tomorrow this is going to work.
Hi Stefan,
https://issues.dlang.org/show_bug.cgi?id=16364
Issue ID: 16364
Summary: getUDAs and hasUDA do not give consistent results
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Sunday, 7 August 2016 at 00:28:40 UTC, Alfred Pincher wrote:
this is a very nice feature. I hope D has something similar?
If you want to implement that kind of allocation tracking you'll
probably want to use gc_getProxy()+gc_setProxy(). They're global
C functions you can access by
On Sunday, 7 August 2016 at 18:25:45 UTC, Andrei Alexandrescu
wrote:
Hello, I've been busy with a paper submission that has a
deadline on Wednesday. There have also been some computer
troubles along the way. After Wed I should be able to tend to
the many open PRs (dog days of the summer these
On 08/08/2016 02:42 AM, Engine Machine wrote:
So, what about passing in the lambda verses the temp variable?
Nothing. I didn't see a case where it worked one way but not the other.
If you have code where adding a variable makes things work, please post
a complete test case.
[...]
My code
On Friday, 24 June 2016 at 09:09:49 UTC, Nordlöw wrote:
What about adding a flag to DMD that overrides the default name
for the linker from `ld` to `ld.gold`?
Ping!
See: https://dpaste.dzfl.pl/2ec6780d4b25
We have two methods defined, f1 and f2, where f2 is static but
they have otherwise identical signatures.
We can see from the disassembly that f1 receives a `this` pointer
while f2 does not.
Yet, typeof() == typeof(). This makes no sense, how can the
On 08/08/2016 08:37, Atila Neves wrote:
On Saturday, 6 August 2016 at 10:34:52 UTC, Nicholas Wilson wrote:
On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote:
https://code.dlang.org/packages/unit-threaded
What's new:
. Mocking support. Classes, interfaces and structs can be mocked
On Monday, 8 August 2016 at 02:36:24 UTC, Engine Machine wrote:
Error: template Mem cannot deduce function from argument types
!(cast(eException)1280L, "main.d", 38u, "main.WinMain")(int),
candidates are:
Mem(T, B = eX, string file = __FILE__, uint line = __LINE__,
string func =
On Sunday, 7 August 2016 at 23:08:34 UTC, Martin Nowak wrote:
I actually don't think this makes sense. You're not in the
position to maintain 1K+ packages, it's the library owners that
need to test their code.
Thanks for taking the time to respond.
I agree with you. Library owners should test
On Saturday, 6 August 2016 at 10:34:52 UTC, Nicholas Wilson wrote:
On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote:
https://code.dlang.org/packages/unit-threaded
What's new:
. Mocking support. Classes, interfaces and structs can be
mocked (see README.md or examples)
. Shrinking
On Saturday, 6 August 2016 at 01:50:15 UTC, Øivind wrote:
On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote:
https://code.dlang.org/packages/unit-threaded
What's new:
. Mocking support. Classes, interfaces and structs can be
mocked (see README.md or examples)
. Shrinking support for
On Saturday, 6 August 2016 at 10:34:52 UTC, Nicholas Wilson wrote:
On Friday, 5 August 2016 at 15:31:34 UTC, Atila Neves wrote:
https://code.dlang.org/packages/unit-threaded
What's new:
. Mocking support. Classes, interfaces and structs can be
mocked (see README.md or examples)
. Shrinking
On Monday, 8 August 2016 at 05:17:24 UTC, Dave Akers wrote:
I do believe your problem is with the line...
On Monday, 8 August 2016 at 02:44:20 UTC, torea wrote:
string cleanLine = strip( cast(string)line );
It's casting a char[] to and immutable(char)[], causing the
mutable buffer from
https://issues.dlang.org/show_bug.cgi?id=14855
Iain Buclaw changed:
What|Removed |Added
CC||ibuc...@gdcproject.org
75 matches
Mail list logo