Re: Understanding behavior of member functions loaded at runtime

2015-03-18 Thread Kagamin via Digitalmars-d-learn
You violate the ABI, try to use delegates instead of functions.

Re: Release Candidate D 2.067.0-rc1

2015-03-18 Thread Szymon Gatner via Digitalmars-d-announce
On Wednesday, 18 March 2015 at 00:47:20 UTC, Martin Nowak wrote: On 03/18/2015 01:13 AM, Manu via Digitalmars-d-announce wrote: Yes. Has for a while. We're really hanging out for the 32bit COFF libs to ship with DMD. Well, someone should add a build target to

Re: Do strings with enum allocate at usage point?

2015-03-18 Thread bearophile via Digitalmars-d-learn
岩倉 澪: However, if enum implies allocation at the usage point for strings, There are two ways to see if something allocates: there is a compiler switch, and an annotation: void foo() @nogc { // Your code here } If the compiler doesn't have a bug it will complain if you put something

[Issue 14304] dmd: interpret.c:6724: void setValue(VarDeclaration*, Expression*): Assertion `(vd-storage_class (0x1000LL | 0x200000LL)) ? isCtfeReferenceValid(newval) : isCtfeValueValid(newval)' fa

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14304 Daniel Kozak kozz...@gmail.com changed: What|Removed |Added Severity|blocker |regression --

[Issue 14178] C++ linux name mangling does not handle standard abbreviations for const types

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14178 --- Comment #1 from Guillaume Chatelet chatelet.guilla...@gmail.com --- FYI, I'm working on this one right now. --

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Paulo Pinto via Digitalmars-d
On Tuesday, 17 March 2015 at 20:50:51 UTC, Bienlein wrote: Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to mention JCSP and GPars. I'm not really sure whether this can be put exactly that way. On a machine with 4 GB RAM you can spawn about 80.000 goroutines (aka green

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Bienlein via Digitalmars-d
What about using a JVM with green threads support or Quasar, wouldn't it be more comparable? -- Paulo Long text, contents of common interest in the last section :-) Thanks for the hints, Paulo. Quasar looks interesting. The current number one actor implementation for the JVM is Akka

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Status|RESOLVED|REOPENED

OFFTOPIC: GPars performance vs Go [was Re: A few notes on choosing between Go and D for a quick project]

2015-03-18 Thread Russel Winder via Digitalmars-d
On Tue, 2015-03-17 at 20:50 +, Bienlein via Digitalmars-d wrote: Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to mention JCSP and GPars. I'm not really sure whether this can be put exactly that way. On a machine with 4 GB RAM you can spawn about 80.000

Re: const as default for variables

2015-03-18 Thread deadalnix via Digitalmars-d
On Wednesday, 18 March 2015 at 06:24:38 UTC, Zach the Mystic wrote: I'm starting to think that refcounting is precisely the opposite of ownership, useful only for when its *impossible* to track ownership easily. Otherwise why would you need a refcount? It is not the language's problem. If

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #5 from Dicebot pub...@dicebot.lv --- std.algorithm.iteration.Cache is private Ah, I have missed that. Yes, renaming can be an option in that case. However it does not really address the core issue - adding any new public symbol to

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #6 from Vladimir Panteleev thecybersha...@gmail.com --- Yeah, I know. Let's do what we can for now. --

Re: Do strings with enum allocate at usage point?

2015-03-18 Thread via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 07:58:58 UTC, Daniel Kozák wrote: But is it document somewhere by spec? Or it is just an optimalization which could be remove at some point? I cannot find it in the specification, but it is guaranteed. It's a benefit we get from the immutability of strings.

Re: Replace core language HexStrings with library entity

2015-03-18 Thread Kagamin via Digitalmars-d
On Wednesday, 18 March 2015 at 08:45:53 UTC, Daniel Murphy wrote: I have no idea what your point is. Lexer complexity matters for every tool that needs to lex D code. Language complexity matters for tools. Lexer complexity is only download and build, it doesn't matter what is the lexer,

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #4 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Dicebot from comment #1) I don't see what can be done here to be honest. This is inherent flaw of D module system - adding new symbols to Phobos/druntime will break

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Russel Winder via Digitalmars-d
On Tue, 2015-03-17 at 15:30 -0700, Andrei Alexandrescu via Digitalmars-d wrote: On 3/17/15 1:50 PM, Bienlein wrote: Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to mention JCSP and GPars. I'm not really sure whether this can be put exactly that way. On a machine

[Issue 14303] rt.util.container.array.Array unittest contains invalid code

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14303 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 14303] rt.util.container.array.Array unittest contains invalid code

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14303 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/ebe07a3f34518e4bbde410f61572b468ac7e8f4e fix issue 14303

Re: DDT 0.11.0 released

2015-03-18 Thread albatroz via Digitalmars-d-announce
Just go to project Properties, Builders, de-select DUB Build and add any another build option or script you need. On Tuesday, 17 March 2015 at 23:54:06 UTC, Manu wrote: I just checked out DDT, and I noticed it seems to use DUB... _

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Russel Winder via Digitalmars-d
On Tue, 2015-03-17 at 22:49 +, deadalnix via Digitalmars-d wrote: On Tuesday, 17 March 2015 at 22:30:37 UTC, Andrei Alexandrescu wrote: On 3/17/15 1:50 PM, Bienlein wrote: Go is only a CSP-like, it isn't CSP. cf Python-CSP and PyCSP, not to mention JCSP and GPars. I'm not

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Russel Winder via Digitalmars-d
On Wed, 2015-03-18 at 08:58 +, Bienlein via Digitalmars-d wrote: […] Thanks for the hints, Paulo. Quasar looks interesting. The current number one actor implementation for the JVM is Akka (akka.io). It was earlier built on Hawtdispatch Possibly, but there are others that get a lot of

Re: Defining a single opCast disables explicit cast to base interfaces

2015-03-18 Thread Jonathan M Davis via Digitalmars-d
On Monday, March 16, 2015 22:27:36 Ali Çehreli via Digitalmars-d wrote: The following program compiles fine: interface I {} class B : I {} class C : B { int i; } void main() { auto c = new C; auto i = cast(I)c;// compiles auto b = cast(B)c;// compiles

Re: Do strings with enum allocate at usage point?

2015-03-18 Thread Daniel Kozák via Digitalmars-d-learn
On Tue, 17 Mar 2015 11:25:00 -0700 Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On 03/17/2015 11:21 AM, 岩倉 澪 wrote: I often hear it advised to avoid using enum with arrays because they will allocate at the usage point, but does this also apply to strings?

Re: ref for (const) variables

2015-03-18 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 17 March 2015 at 18:14:48 UTC, Jonathan M Davis wrote: How long is the ref returned by getFoo even valid? Maybe it refers to memory that gets freed on the next line. The compiler can't know. The problem is not specific to variables, any reference type has that issue.

Temple templates with vibe.d support and first D experiences

2015-03-18 Thread István Zólyomi
Hi, I've been lurking around in the forums for quite a long time now, but only recently tried D for a bit more than some trivial experimentation. Though the documentation of external libraries and the tooling itself is far from a commercial solution in quality, I understand that it's a

[Issue 14304] dmd: interpret.c:6724: void setValue(VarDeclaration*, Expression*): Assertion `(vd-storage_class (0x1000LL | 0x200000LL)) ? isCtfeReferenceValid(newval) : isCtfeValueValid(newval)' fa

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14304 Martin Nowak c...@dawg.eu changed: What|Removed |Added CC||c...@dawg.eu --- Comment #1 from

Re: Replace core language HexStrings with library entity

2015-03-18 Thread Kagamin via Digitalmars-d
On Tuesday, 17 March 2015 at 14:14:59 UTC, Daniel Murphy wrote: Yes, but only a very little bit. How much code could you delete from a D lexer if they were removed? The compiler lexer can be of arbitrary complexity, because it's already written. If you write a compiler, you just grab the

Re: Replace core language HexStrings with library entity

2015-03-18 Thread Daniel Murphy via Digitalmars-d
Kagamin wrote in message news:pltiewdojqrmgxrwh...@forum.dlang.org... The compiler lexer can be of arbitrary complexity, because it's already written. If you write a compiler, you just grab the ready lexer and use it, you don't need to count lines. The problem is with other, non-compiler

Re: OFFTOPIC: GPars performance vs Go [was Re: A few notes on choosing between Go and D for a quick project]

2015-03-18 Thread Bienlein via Digitalmars-d
A priori I do not believe the claim made here: a GPars task is submitted to a thread pool, which is exactly what the goroutines are. Thus the number of Java threads is not a bound on the number of GPars tasks. Any bounds will be provided by the Fork/Join pool. Here is a GPars sample from

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread CraigDillabaugh via Digitalmars-d
clip Bearophile, You said that Unfortunately this thinking is going out of style for good reasons. I am confused (sorry, I am at work, and didn't have time to watch the 1+ hour video you linked to - maybe some clues were there)! I often find myself feeling a bit like Elazar. Not long

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Chris via Digitalmars-d
On Wednesday, 18 March 2015 at 01:52:00 UTC, Laeeth Isharc wrote: On Tuesday, 17 March 2015 at 21:00:11 UTC, bachmeier wrote: On Tuesday, 17 March 2015 at 19:00:06 UTC, jmh530 wrote: In addition, further development of the ability to call D from R or Python* or Julia (or vice-versa) would also

Re: The next iteration of scope

2015-03-18 Thread Oren Tirosh via Digitalmars-d
On Sunday, 15 March 2015 at 19:11:36 UTC, Marc Schütz wrote: On Sunday, 15 March 2015 at 17:31:17 UTC, Nick Treleaven wrote: On 15/03/2015 14:10, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: Here's the new version of my scope proposal: http://wiki.dlang.org/User:Schuetzm/scope2 It's

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 --- Comment #7 from Vladimir Panteleev thecybersha...@gmail.com --- FWIW, introduced in https://github.com/D-Programming-Language/phobos/pull/1364 --

[Issue 14304] dmd: interpret.c:6724: void setValue(VarDeclaration*, Expression*): Assertion `(vd-storage_class (0x1000LL | 0x200000LL)) ? isCtfeReferenceValid(newval) : isCtfeValueValid(newval)' fa

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14304 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: Temple templates with vibe.d support and first D experiences

2015-03-18 Thread István Zólyomi
which dmd version? I'm using DMD64 D Compiler v2.066.0 with DUB version 0.9.22 and I've got the following dependencies in my dub.json: dependencies: { vibe-d: ~0.7.19, temple: ~0.7.3 }

[Issue 259] Comparing signed to unsigned does not generate an error

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=259 --- Comment #57 from Lionello Lunesu lio+bugzi...@lunesu.com --- (In reply to Andrei Alexandrescu from comment #56) What's left to do about this? I need to finish some of the static code analysis that I have been adding so we get less false

Re: Digger 1.1

2015-03-18 Thread Vladimir Panteleev via Digitalmars-d-announce
On Sunday, 8 March 2015 at 18:20:07 UTC, Robert M. Münch wrote: Ok, great. I just tried it on Windows and get this here: I've pushed support for DMD bootstrapping, so if you need to build master now, build latest Digger from source. I'll make a binary release after 2.067 is out.

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread bearophile via Digitalmars-d
Elazar Leibovich: I personally, would have no idea what this piece of code is doing upon first sight. I'll have to look at the documentation of at least two functions to understand that, and I'll have to think carefully about what and who would throw in case of an error. Something like

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread bearophile via Digitalmars-d
CraigDillabaugh: You said that Unfortunately this thinking is going out of style for good reasons. I am confused (sorry, I am at work, and didn't have time to watch the 1+ hour video you linked to - I said unfortunately because it's another reason for us to refactor and change our coding

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Elazar Leibovich via Digitalmars-d
On Friday, 13 March 2015 at 17:31:09 UTC, Andrei Alexandrescu wrote: For example the expression (assuming s is e.g. a string) File(/tmp/a).byChunk(4096).joiner.startsWith(s) opens a file, progressively reads chunks of 4KB, stitches them together at no cost, compares against a prefix until

[Issue 14300] [2.067-rc1] DList casting to base type is broken

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14300 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread CraigDillabaugh via Digitalmars-d
On Wednesday, 18 March 2015 at 12:11:52 UTC, bearophile wrote: Elazar Leibovich: I personally, would have no idea what this piece of code is doing upon first sight. I'll have to look at the documentation of at least two functions to understand that, and I'll have to think carefully about

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread John Colvin via Digitalmars-d
On Wednesday, 18 March 2015 at 12:45:50 UTC, CraigDillabaugh wrote: On Wednesday, 18 March 2015 at 12:11:52 UTC, bearophile wrote: Elazar Leibovich: I personally, would have no idea what this piece of code is doing upon first sight. I'll have to look at the documentation of at least two

Re: Temple templates with vibe.d support and first D experiences

2015-03-18 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 08:13:37 UTC, István Zólyomi wrote: Hi, I've been lurking around in the forums for quite a long time now, but only recently tried D for a bit more than some trivial experimentation. Though the documentation of external libraries and the tooling itself is far

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Chris via Digitalmars-d
On Wednesday, 18 March 2015 at 12:45:50 UTC, CraigDillabaugh wrote: On Wednesday, 18 March 2015 at 12:11:52 UTC, bearophile wrote: Elazar Leibovich: I personally, would have no idea what this piece of code is doing upon first sight. I'll have to look at the documentation of at least two

Re: const as default for variables

2015-03-18 Thread Zach the Mystic via Digitalmars-d
On Wednesday, 18 March 2015 at 09:28:35 UTC, deadalnix wrote: On Wednesday, 18 March 2015 at 06:24:38 UTC, Zach the Mystic wrote: I'm starting to think that refcounting is precisely the opposite of ownership, useful only for when its *impossible* to track ownership easily. Otherwise why would

Is it possible to call D functions from C++

2015-03-18 Thread Namal via Digitalmars-d
Hello, as in the title. How can I call D functions from C++ (If my main() is in a c++ file). Thanks alot!

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Chris via Digitalmars-d
On Tuesday, 17 March 2015 at 21:16:38 UTC, Carl Sturtivant wrote: Characterizing the problem as Go versus D is framing it to D's disadvantage. Broadly speaking Go is one thing D is many things. The whole difficulty with D encountered by a person choosing which of (e.g.) Go and D to use

Re: Is it possible to call D functions from C++

2015-03-18 Thread krzaq via Digitalmars-d
On Wednesday, 18 March 2015 at 14:20:19 UTC, Benjamin Thaut wrote: On Wednesday, 18 March 2015 at 14:17:13 UTC, Namal wrote: Hello, as in the title. How can I call D functions from C++ (If my main() is in a c++ file). Thanks alot! D: extern(C++) void SomeDFunction() { doSomething(); }

Re: Is it possible to call D functions from C++

2015-03-18 Thread Daniel Kozak via Digitalmars-d
On Wednesday, 18 March 2015 at 14:20:19 UTC, Benjamin Thaut wrote: On Wednesday, 18 March 2015 at 14:17:13 UTC, Namal wrote: Hello, as in the title. How can I call D functions from C++ (If my main() is in a c++ file). Thanks alot! D: extern(C++) void SomeDFunction() { doSomething(); }

variadic mixin - the right tool for the job?

2015-03-18 Thread Robert M. Münch via Digitalmars-d-learn
Hi, can something like this (I borrowed the C pre-processor idea) be done with variadic mixins? #define log(variadic-arg) sys-log(%s:%s + variadic-arg[0], __FILE__, __LINE__, variadic-arg[1..$]); I read that mixins can only be used for declarations, and this here is a function call. So

[Issue 14296] RDMD fails at building a lib when the source is in a subdir

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14296 --- Comment #1 from Vladimir Panteleev thecybersha...@gmail.com --- (In reply to Nick Sabalausky from comment #0) This used to work with the RDMD packaged in DMD v2.064.2, but fails starting with RDMD 2.065.0. It didn't exactly work as one would

Re: variadic mixin - the right tool for the job?

2015-03-18 Thread Daniel Kozák via Digitalmars-d-learn
On Wed, 18 Mar 2015 15:35:03 +0100 Robert M. Münch via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Hi, can something like this (I borrowed the C pre-processor idea) be done with variadic mixins? #define log(variadic-arg) sys-log(%s:%s + variadic-arg[0], __FILE__,

[Issue 14298] std.typecons.Proxy incorrectly defines opCast operator, that breaks casting to supertype.

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14298 Ali Cehreli acehr...@yahoo.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 9249] Defining opCast disables downcasting and explicit upcasting

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9249 Ali Cehreli acehr...@yahoo.com changed: What|Removed |Added CC||luk.wrzo...@gmail.com ---

Re: Is it possible to call D functions from C++

2015-03-18 Thread Namal via Digitalmars-d
alright, thanks alot. Now I have. test.d import std.stdio; extern (C++) int foo(int i, int j, int k) { writefln(i = %s, i); writefln(j = %s, j); writefln(k = %s, k); return 1; } and main.cpp int foo(int i, int j, int k); int main() { foo(1,2,3); } Can you help me show how

well-hidden opBinary bug

2015-03-18 Thread ketmar via Digitalmars-d
trying to build Deadcode with git HEAD reveals strange bug that i can't reproduce on smaller codebase: (some irrelevant error in `gui.style.types.CSSScale.opBinary`) Error: template instance gui.style.types.CSSScale.opBinary!= error instantiating what is interesting about this bug that is was

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread jmh530 via Digitalmars-d
On Wednesday, 18 March 2015 at 02:00:40 UTC, bachmeier wrote: Unfortunately there is little documentation (though I'm working on that). I only use Linux but I would be happy if someone that knows Windows would find that it works there. Work machine's firewall isn't letting me run

[Issue 14305] New: DMD incorrectly interprets -of and -od with -lib

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14305 Issue ID: 14305 Summary: DMD incorrectly interprets -of and -od with -lib Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal

[Issue 14296] RDMD fails at building a lib when the source is in a subdir

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14296 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Depends on||14305 --

Re: Is it possible to call D functions from C++

2015-03-18 Thread Chris via Digitalmars-d
On Wednesday, 18 March 2015 at 14:17:13 UTC, Namal wrote: Hello, as in the title. How can I call D functions from C++ (If my main() is in a c++ file). Thanks alot! http://dlang.org/cpp_interface.html http://dlang.org/interfaceToC.html There is also D.learn ;)

[Issue 14301] [2.067-rc1] Private symbols of module conflicts with public from another

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14301 Ketmar Dark ket...@ketmar.no-ip.org changed: What|Removed |Added CC||ket...@ketmar.no-ip.org

Re: Is it possible to call D functions from C++

2015-03-18 Thread Benjamin Thaut via Digitalmars-d
On Wednesday, 18 March 2015 at 14:17:13 UTC, Namal wrote: Hello, as in the title. How can I call D functions from C++ (If my main() is in a c++ file). Thanks alot! D: extern(C++) void SomeDFunction() { doSomething(); } C++: void SomeDFunction(); void main() { SomeDFunction(); }

Re: Replace core language HexStrings with library entity

2015-03-18 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 18, 2015 at 07:45:54PM +1100, Daniel Murphy via Digitalmars-d wrote: Kagamin wrote in message news:pltiewdojqrmgxrwh...@forum.dlang.org... The compiler lexer can be of arbitrary complexity, because it's already written. If you write a compiler, you just grab the ready lexer and

Re: Is it possible to call D functions from C++

2015-03-18 Thread Kagamin via Digitalmars-d
On Wednesday, 18 March 2015 at 14:50:21 UTC, Namal wrote: Can you help me show how to compile and link it together please, thank you. Try C example first: http://forum.dlang.org/post/qppmeeakboxjzuuwr...@forum.dlang.org

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread John Colvin via Digitalmars-d
On Wednesday, 18 March 2015 at 13:27:54 UTC, CraigDillabaugh wrote: clip Bearophile, You said that Unfortunately this thinking is going out of style for good reasons. I am confused (sorry, I am at work, and didn't have time to watch the 1+ hour video you linked to - maybe some clues were

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-18 05:49, Laeeth Isharc wrote: Thanks. I should have double checked but trusted dstep which seems to have gotten confused by these ones. Its a great time saver generally though. Please report any issues with DStep to [1]. [1] http://github.com/jacob-carlborg/dstep/issues --

Re: Temple templates with vibe.d support and first D experiences

2015-03-18 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 13:44:39 UTC, István Zólyomi wrote: which dmd version? I'm using DMD64 D Compiler v2.066.0 with DUB version 0.9.22 and I've got the following dependencies in my dub.json: dependencies: { vibe-d: ~0.7.19, temple: ~0.7.3 } It might not solve your problem but i

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-17 08:15, Walter Bright wrote: When Voldemort types are returned, they must be by auto. The user isn't supposed to know what the return type is, just how to use it. I still don't like that there's no good way to describe the API. It's not possible to put a name (that can be used

Re: Is it possible to call D functions from C++

2015-03-18 Thread Benjamin Thaut via Digitalmars-d
On Wednesday, 18 March 2015 at 14:50:21 UTC, Namal wrote: Can you help me show how to compile and link it together please, thank you. What platform are you on, windows, linux, osx? What c++ compiler do you use? msvc, clang, gcc?

Re: Is it possible to call D functions from C++

2015-03-18 Thread krzaq via Digitalmars-d
On Wednesday, 18 March 2015 at 15:51:28 UTC, Benjamin Thaut wrote: On Wednesday, 18 March 2015 at 14:40:48 UTC, krzaq wrote: I'm pretty sure the OP wanted to call D functions from C++, not C++ functions from D. If you look very closely you will notice that my example does exactly what the

Re: Is it possible to call D functions from C++

2015-03-18 Thread Benjamin Thaut via Digitalmars-d
On Wednesday, 18 March 2015 at 14:40:48 UTC, krzaq wrote: I'm pretty sure the OP wanted to call D functions from C++, not C++ functions from D. If you look very closely you will notice that my example does exactly what the OP wanted.

Should this work: export extern(C) auto ...

2015-03-18 Thread Robert M. Münch via Digitalmars-d-learn
Windows, 32-Bit, DLL: export extern(C) struct1 struct1(){ struct1 x; return(x); } export extern(C) auto struct2(){ struct1 x; return(x); } struct1 is visible in the DLL, struct2 is not visible in the DLL. -- Robert M. Münch http://www.saphirion.com smarter | better | faster

[Issue 14297] [2.067-rc1] Broken links in phobos/index.html

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14297 bb.t...@gmx.com changed: What|Removed |Added Status|RESOLVED|CLOSED --

[Issue 14306] New: Wrong codegen with -inline for generic lambdas

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14306 Issue ID: 14306 Summary: Wrong codegen with -inline for generic lambdas Product: D Version: D2 Hardware: x86 OS: Linux Status: NEW Severity: critical

Re: Understanding behavior of member functions loaded at runtime

2015-03-18 Thread Maeriden via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 07:57:39 UTC, Kagamin wrote: You violate the ABI, try to use delegates instead of functions. I'm sorry,I don't understand what you mean.

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Bayan Rafeh via Digitalmars-d
I'm sorry to disrupt the conversation, but I feel like I should weigh in since I'm a user the original critic felt D should be attracting. I'm a CS undergrad doing my graduation project in D, and the only other languages I worked with seriously were Python and Java(For personal projects and

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-16 04:25, deadalnix wrote: Compiling an hello world is almost instantaneous as far as I experienced it. I do think it is interesting for you to share your setup so we can understand what is going on and avoid for another newbie to have the same experience. It's most likely linking

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-18 Thread Laeeth Isharc via Digitalmars-d-learn
On Wednesday, 18 March 2015 at 05:38:40 UTC, Ali Çehreli wrote: On 03/17/2015 06:13 PM, Laeeth Isharc wrote: DMD gave me an error message for the following declarations: double mgl_rnd (...); double mgl_rnd_ (...); Are you sure those are the right signatures? I don't think those functions

[Issue 14306] Wrong codegen with -inline for generic lambdas

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14306 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: calling C variadic arguments with no 'argc' and only variadic arguments

2015-03-18 Thread Laeeth Isharc via Digitalmars-d
On Wednesday, 18 March 2015 at 16:14:28 UTC, Jacob Carlborg wrote: On 2015-03-18 05:49, Laeeth Isharc wrote: Thanks. I should have double checked but trusted dstep which seems to have gotten confused by these ones. Its a great time saver generally though. Please report any issues with

Re: The next iteration of scope

2015-03-18 Thread Zach the Mystic via Digitalmars-d
On Wednesday, 18 March 2015 at 13:01:50 UTC, Oren Tirosh wrote: On Sunday, 15 March 2015 at 19:11:36 UTC, Marc Schütz wrote: On Sunday, 15 March 2015 at 17:31:17 UTC, Nick Treleaven wrote: On 15/03/2015 14:10, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: Here's the new version of my

Re: Phobos Documentation - call to action

2015-03-18 Thread Zach the Mystic via Digitalmars-d
On Wednesday, 18 March 2015 at 03:45:07 UTC, Walter Bright wrote: The bad news: the Phobos documentation sux. The good news: we can make things a lot better by just filling in blanks. For example, picking a function largely at random: http://dlang.org/phobos/std_uni.html#sicmp There is no

template instantiation question

2015-03-18 Thread Dmitri Makarov via Digitalmars-d-learn
I have three modules a.d, b.d, and c.d: file a.d:``` module i.a; import i.c, i.b; final class A { public: void foo() { a.transmogrify(); } S!void a; } ``` -- file b.d:``` module i.b; import i.a, i.c; class B { public: S!void b; } ``` -- file c.d:``` module

Re: Understanding behavior of member functions loaded at runtime

2015-03-18 Thread Ali Çehreli via Digitalmars-d-learn
On 03/18/2015 09:02 AM, Maeriden wrote: On Wednesday, 18 March 2015 at 07:57:39 UTC, Kagamin wrote: You violate the ABI, try to use delegates instead of functions. I'm sorry,I don't understand what you mean. The types that you cast to are not correct. In D, callable member function

Re: Digger 1.1

2015-03-18 Thread Martin Nowak via Digitalmars-d-announce
On 03/04/2015 05:54 AM, Vladimir Panteleev wrote: Finally, this is the first stable release with binary downloads for all major platforms: Nice, out of curiosity. How did you build the releases for all the platforms?

Re: template instantiation question

2015-03-18 Thread Ali Çehreli via Digitalmars-d-learn
On 03/18/2015 11:03 AM, Dmitri Makarov wrote: When these modules compiled separately, I assume, both a.o and b.o contain a definition of i.c.S!void.S.transmogrify() instance. That is very likely but I played with different three files for a while and failed to see that. how is the symbol

Re: Phobos Documentation - call to action

2015-03-18 Thread H. S. Teoh via Digitalmars-d
On Wed, Mar 18, 2015 at 01:23:26PM -0700, H. S. Teoh via Digitalmars-d wrote: On Wed, Mar 18, 2015 at 01:18:41PM -0700, Walter Bright via Digitalmars-d wrote: On 3/18/2015 12:42 PM, Zach the Mystic wrote: But why, therefore, is it so hard to get movement on it? I don't know why, so

Re: Replace core language HexStrings with library entity

2015-03-18 Thread Andrei Alexandrescu via Digitalmars-d
On 3/17/15 5:45 PM, weaselcat wrote: On Wednesday, 18 March 2015 at 00:34:06 UTC, Daniel Murphy wrote: Andrei Alexandrescu wrote in message news:me9s2m$308v$1...@digitalmars.com... It pains me to no end to see energy going in all the wrong places. Just now I was reviewing some code using

[Issue 14307] Ddoc: issue error on all functions that are missing ddoc sections

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14307 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Keywords||ddoc --

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread Steve Wood via Digitalmars-d
On Friday, 13 March 2015 at 04:49:38 UTC, Walter Bright wrote: Google does abandon significant projects now and then, such as this one: http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html In fairness pretty much everything that was on google-code has moved, mostly

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread bachmeier via Digitalmars-d
On Wednesday, 18 March 2015 at 15:13:24 UTC, jmh530 wrote: On Wednesday, 18 March 2015 at 02:00:40 UTC, bachmeier wrote: Unfortunately there is little documentation (though I'm working on that). I only use Linux but I would be happy if someone that knows Windows would find that it works there.

Enhancement: issue error on all public functions that are missing ddoc sections

2015-03-18 Thread Walter Bright via Digitalmars-d
I'm fed up with this problem. It is actively hurting us every day. https://issues.dlang.org/show_bug.cgi?id=14307 Anyone want to take this on? Shouldn't be particularly difficult.

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread weaselcat via Digitalmars-d
On Wednesday, 18 March 2015 at 11:53:06 UTC, Elazar Leibovich wrote: On Friday, 13 March 2015 at 17:31:09 UTC, Andrei Alexandrescu wrote: For example the expression (assuming s is e.g. a string) File(/tmp/a).byChunk(4096).joiner.startsWith(s) opens a file, progressively reads chunks of 4KB,

[Issue 14307] Ddoc: issue error on all functions that are missing ddoc sections

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14307 Jonathan M Davis issues.dl...@jmdavisprog.com changed: What|Removed |Added CC|

Re: Digger 1.1

2015-03-18 Thread Vladimir Panteleev via Digitalmars-d-announce
On Wednesday, 18 March 2015 at 18:18:19 UTC, Martin Nowak wrote: On 03/04/2015 05:54 AM, Vladimir Panteleev wrote: Finally, this is the first stable release with binary downloads for all major platforms: Nice, out of curiosity. How did you build the releases for all the platforms?

[Issue 14304] New: dmd: interpret.c:6724: void setValue(VarDeclaration*, Expression*): Assertion `(vd-storage_class (0x1000LL | 0x200000LL)) ? isCtfeReferenceValid(newval) : isCtfeValueValid(newval

2015-03-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14304 Issue ID: 14304 Summary: dmd: interpret.c:6724: void setValue(VarDeclaration*, Expression*): Assertion `(vd-storage_class (0x1000LL | 0x20LL)) ?

Re: Release Candidate D 2.067.0-rc1

2015-03-18 Thread Daniel Kozak via Digitalmars-d-announce
On Tuesday, 17 March 2015 at 14:01:18 UTC, Steven Schveighoffer wrote: On 3/17/15 7:18 AM, Daniel Kozak wrote: On Monday, 16 March 2015 at 21:38:22 UTC, Martin Nowak wrote: Release Candidate for 2.067.0 http://downloads.dlang.org/pre-releases/2.x/2.067.0/ http://ftp.digitalmars.com/ You can

Re: DDT 0.11.0 released

2015-03-18 Thread Ben Boeckel via Digitalmars-d-announce
On Wed, Mar 18, 2015 at 22:32:05 +, Trent Forkert via Digitalmars-d-announce wrote: The only sensible way to use multiple languages in the same project is to use the same build system for them. Anything else is way too fragile and hackish. Arbitrary, contrived example (though not

Re: A few notes on choosing between Go and D for a quick project

2015-03-18 Thread David Gileadi via Digitalmars-d
On 3/18/15 4:54 PM, David Gileadi wrote: On 3/18/15 4:48 PM, jkpl wrote: On Wednesday, 18 March 2015 at 23:41:41 UTC, Walter Bright wrote: On 3/18/2015 5:45 AM, CraigDillabaugh wrote: You said that Unfortunately this thinking is going out of style for good reasons. I am confused (sorry, I

  1   2   >