Re: UFCS with implicit "this" ?

2016-08-08 Thread Jonathan M Davis via Digitalmars-d-learn
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

UFCS with implicit "this" ?

2016-08-08 Thread cy via Digitalmars-d-learn
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;

[Issue 16261] dmd -profile & nativeToLittleEndian() --> wrong result

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16261 dushibaiyu changed: What|Removed |Added CC||dushiba...@yahoo.com ---

Re: This Week in D: debugging uncaught exceptions

2016-08-08 Thread DLangLearner via Digitalmars-d-announce
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

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Walter Bright via Digitalmars-d
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.

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Chris Wright via Digitalmars-d
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

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Emre Temelkuran via Digitalmars-d
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

Re: Pass RegexMatch to a function?

2016-08-08 Thread Jonathan M Davis via Digitalmars-d-learn
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

Pass RegexMatch to a function?

2016-08-08 Thread Gerald via Digitalmars-d-learn
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

Re: move std.{ascii, base64, utf} to a new encoding package

2016-08-08 Thread Jonathan M Davis via Digitalmars-d
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

Re: encoding ISO-8859-1 to UTF-8 in std.net.curl

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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:

Re: DConf 2016 on YouTube

2016-08-08 Thread Seb via Digitalmars-d-announce
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:

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Isaac Gouy via Digitalmars-d
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.

Re: encoding ISO-8859-1 to UTF-8 in std.net.curl

2016-08-08 Thread Alexsej via Digitalmars-d-learn
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 "отсутствует или неверно задан

Re: encoding ISO-8859-1 to UTF-8 in std.net.curl

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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

Re: encoding ISO-8859-1 to UTF-8 in std.net.curl

2016-08-08 Thread Alexsej via Digitalmars-d-learn
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 "отсутствует или неверно задан

arrays, mmu, addressing choices

2016-08-08 Thread Charles Hixson via Digitalmars-d-learn
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

Re: encoding ISO-8859-1 to UTF-8 in std.net.curl

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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

Re: This Week in D: debugging uncaught exceptions

2016-08-08 Thread Jacob Carlborg via Digitalmars-d-announce
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

[Issue 16348] [REG 2.070.2] ICE with package visibility

2016-08-08 Thread via Digitalmars-d-bugs
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

Re: move std.{ascii, base64, utf} to a new encoding package

2016-08-08 Thread Jack Stouffer via Digitalmars-d
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.

Re: How do i convert this Makefile to dub

2016-08-08 Thread drug007 via Digitalmars-d-learn
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

Re: move std.{ascii, base64, utf} to a new encoding package

2016-08-08 Thread LaTeigne via Digitalmars-d
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

encoding ISO-8859-1 to UTF-8 in std.net.curl

2016-08-08 Thread Alexsej via Digitalmars-d-learn
import std.stdio; import std.net.curl; void main() { string url = "www.site.ru/xml/api.asp"; string data = " 59538 ... "; auto http = HTTP();

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Meta via Digitalmars-d
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

Re: How do i convert this Makefile to dub

2016-08-08 Thread Adil via Digitalmars-d-learn
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.

Re: How do i convert this Makefile to dub

2016-08-08 Thread drug007 via Digitalmars-d-learn
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

Re: How do i convert this Makefile to dub

2016-08-08 Thread Adil via Digitalmars-d-learn
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:

How do i convert this Makefile to dub

2016-08-08 Thread Adil via Digitalmars-d-learn
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

Re: How to debug D programs

2016-08-08 Thread Sebastien Alaiwan via Digitalmars-d-debugger
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.

Re: The Computer Language Benchmarks Game

2016-08-08 Thread H. S. Teoh via Digitalmars-d
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 >

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Meta via Digitalmars-d
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

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Isaac Gouy via Digitalmars-d
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.

Re: The Computer Language Benchmarks Game

2016-08-08 Thread Isaac Gouy via Digitalmars-d
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

Re: string mixup problem with stdin.byLine

2016-08-08 Thread Meta via Digitalmars-d-learn
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

Re: LDC 1.1.0-beta2 has been released!

2016-08-08 Thread Lodovico Giaretta via Digitalmars-d-announce
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

Re: LDC 1.1.0-beta2 has been released!

2016-08-08 Thread Lodovico Giaretta via Digitalmars-d-announce
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,

[Issue 15538] final switch statement raises an exception even though all cases are covered under certain conditions

2016-08-08 Thread via Digitalmars-d-bugs
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

Re: unit-threaded v0.6.26 - advanced unit testing in D with new features

2016-08-08 Thread Atila Neves via Digitalmars-d-announce
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 (!)

Re: [DIP] In-place struct initialization

2016-08-08 Thread ketmar via Digitalmars-d
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

Re: string mixup problem with stdin.byLine

2016-08-08 Thread Seb via Digitalmars-d-learn
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

Re: Battle-plan for CTFE

2016-08-08 Thread Stefan Koch via Digitalmars-d-announce
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

How to debug D programs

2016-08-08 Thread eugene via Digitalmars-d-debugger
Hello, everyone, question to you: how do you debug D programs on gnu/linux? and what ides are you using for debugging?

Re: method static-ness has no effect on the type?

2016-08-08 Thread Cauterite via Digitalmars-d-learn
On Monday, 8 August 2016 at 10:21:47 UTC, ag0aep6g wrote: Also thanks for submitting the bug for me.

[Issue 16085] wrong visibility warning for overloaded alias symbol

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16085 Martin Nowak changed: What|Removed |Added Keywords||pull --- Comment #12 from

[Issue 16348] [REG 2.070.2] ICE with package visibility

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16348 Martin Nowak changed: What|Removed |Added Keywords||pull --- Comment #3 from

[Issue 16348] [REG 2.070.2] ICE with package visibility

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16348 Martin Nowak changed: What|Removed |Added Assignee|nob...@puremagic.com|c...@dawg.eu --

[Issue 15900] [REG 2.071] (Import deprecation) Public import ignored when using fully qualified name

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15900 Martin Nowak changed: What|Removed |Added Keywords||pull --- Comment #6 from

Re: method static-ness has no effect on the type?

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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

[Issue 16086] Imported function name shadows alias this member

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16086 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

[Issue 15903] [REG 2.071] module foo.bar is not accessible here, perhaps add 'static import foo.bar; (already there)

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15903 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

[Issue 15983] [REG 2.071] Symbol visibility in derived classes

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15983 Martin Nowak changed: What|Removed |Added CC||c...@dawg.eu

[Issue 15877] [REG2.071beta] Some members are not visible by std.typecons.BlackHole

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15877 Martin Nowak changed: What|Removed |Added Assignee|nob...@puremagic.com|c...@dawg.eu --- Comment #2

Re: Question regarding Base64 decoding

2016-08-08 Thread Johannes Loher via Digitalmars-d-learn
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

Re: Cannot distinguish between template function wtih 0 args and 1 arg

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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 =

Re: method static-ness has no effect on the type?

2016-08-08 Thread Cauterite via Digitalmars-d-learn
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:

Re: method static-ness has no effect on the type?

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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() {

[Issue 16365] cannot allow calling function pointer from delegate in @safe code

2016-08-08 Thread via Digitalmars-d-bugs
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

[Issue 16365] New: cannot allow calling function pointer from delegate in @safe code

2016-08-08 Thread via Digitalmars-d-bugs
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:

Re: [DIP] In-place struct initialization

2016-08-08 Thread Cauterite via Digitalmars-d
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?

Re: Battle-plan for CTFE

2016-08-08 Thread Johan Engelen via Digitalmars-d-announce
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,

[Issue 16364] New: getUDAs and hasUDA do not give consistent results

2016-08-08 Thread via Digitalmars-d-bugs
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

Re: Tracking memory usage

2016-08-08 Thread Cauterite via Digitalmars-d-learn
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

Re: I'll be back soon

2016-08-08 Thread Chris via Digitalmars-d
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

Re: callback craziness

2016-08-08 Thread ag0aep6g via Digitalmars-d-learn
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

Re: Is dmd fast?

2016-08-08 Thread Nordlöw via Digitalmars-d
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!

method static-ness has no effect on the type?

2016-08-08 Thread Cauterite via Digitalmars-d-learn
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

Re: unit-threaded v0.6.26 - advanced unit testing in D with new features

2016-08-08 Thread Alix Pexton via Digitalmars-d-announce
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

Re: Cannot distinguish between template function wtih 0 args and 1 arg

2016-08-08 Thread Cauterite via Digitalmars-d-learn
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 =

Re: Autotesting dub packages with dmd nightly

2016-08-08 Thread Sebastiaan Koppe via Digitalmars-d-announce
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

Re: unit-threaded v0.6.26 - advanced unit testing in D with new features

2016-08-08 Thread Atila Neves via Digitalmars-d-announce
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

Re: unit-threaded v0.6.26 - advanced unit testing in D with new features

2016-08-08 Thread Atila Neves via Digitalmars-d-announce
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

Re: unit-threaded v0.6.26 - advanced unit testing in D with new features

2016-08-08 Thread Atila Neves via Digitalmars-d-announce
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

Re: string mixup problem with stdin.byLine

2016-08-08 Thread torea via Digitalmars-d-learn
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

[Issue 14855] -cov should ignore assert(0)

2016-08-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14855 Iain Buclaw changed: What|Removed |Added CC||ibuc...@gdcproject.org