Re: std.experimental Timeline

2016-01-03 Thread Dicebot via Digitalmars-d
On Saturday, 2 January 2016 at 04:27:02 UTC, Jack Stouffer wrote: On Friday, 1 January 2016 at 20:10:22 UTC, Dicebot wrote: Thus the original formal process was looking like this in my head: ... Can this be adopted formally? Depends on if you want to volunteer to manage the process and

Re: Call C function - Access violation

2016-01-03 Thread TheDGuy via Digitalmars-d-learn
On Sunday, 3 January 2016 at 21:20:35 UTC, anonymous wrote: On 03.01.2016 21:32, TheDGuy wrote: If i type: gcc -c -otest.c.o the 'test.c.o' file is generated but if i type: dmd main.d test.c.o i get: 'Error: unrecognized file extension o'? You're probably on Windows then? dmd doesn't

Re: Beta D 2.070.0-b1

2016-01-03 Thread Martin Nowak via Digitalmars-d-announce
On 01/03/2016 09:20 PM, tsbockman wrote: > > Any hope for this? > > https://github.com/D-Programming-Language/dmd/pull/3407#issuecomment-136974686 > > It's been bugging a lot of people lately. Well, this still needs a lot of work that nobody was did. Walter spend almost the whole release

Re: Deit Editor

2016-01-03 Thread Jason Jeffory via Digitalmars-d-learn
On Sunday, 3 January 2016 at 18:53:10 UTC, Martin Tschierschke wrote: On Friday, 1 January 2016 at 00:14:08 UTC, Jason Jeffory wrote: Vibe.d uses deit files for html generation. Seems nice but haven't dived into it(just removes a but of nonsense and allows code integration for dynamic

Re: Using D and std.ndslice as a Numpy Replacement

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/2/16 6:24 PM, Ilya Yaroshenko wrote: On Saturday, 2 January 2016 at 23:23:38 UTC, Ilya Yaroshenko wrote: On Saturday, 2 January 2016 at 19:49:05 UTC, Jack Stouffer wrote: http://jackstouffer.com/blog/nd_slice.html

Re: Better docs for D (WIP)

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/2/16 2:31 PM, JohnCK wrote: On Wednesday, 30 December 2015 at 23:05:11 UTC, Adam D. Ruppe wrote: This huge friction has killed my desire to contribute to Phobos before and it looks like it is again. the difference is this time, I have my own fork so the community doesn't have to lose out.

Re: Proposal: Database Engine for D

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d
On 1/2/16 7:23 AM, Jacob Carlborg wrote: On 2016-01-01 11:45, Ola Fosheim Grøstad wrote: In D1 Walter made a point about restricting operator overloading to discourage reuse of operators. In D2 there are many ways to create your own weird syntax, but Walter is locked on his D1 position, even

[Issue 15490] [REG 2.067] Error variable __nrvoretval cannot be modified at compile time when using -inline

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15490 Iain Buclaw changed: What|Removed |Added Summary|[REG 2.069] Error variable |[REG 2.067] Error

[Issue 15490] [REG 2.069] Error variable __nrvoretval cannot be modified at compile time when using -inline

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15490 --- Comment #3 from Iain Buclaw --- (In reply to ag0aep6g from comment #2) > Reduced: > > This reduction fails with 2.068 and 2.067, too. But it compiles with 2.066. Thanks alot! Yes, I have been seeing the error occur in

[Issue 15490] [REG 2.067] Error variable __nrvoretval cannot be modified at compile time when using -inline

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15490 --- Comment #4 from Iain Buclaw --- First bad commit: https://github.com/D-Programming-Language/dmd/pull/4353 --

Re: std.experimental Timeline

2016-01-03 Thread Dicebot via Digitalmars-d
On Sunday, 3 January 2016 at 22:37:34 UTC, Andrei Alexandrescu wrote: I guess that's a good example of the benefits of std.experimental. Now you can file bug reports and the module could undergo significant changes before being moved to std. Have you filed requests yet? -- Andrei Not yet - I

[Issue 15509] IAllocator must be exposed via a reference counted struct

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15509 Dicebot changed: What|Removed |Added CC||pub...@dicebot.lv --- Comment

Re: D forbearance(Official backing of libs)

2016-01-03 Thread Dicebot via Digitalmars-d
On Sunday, 3 January 2016 at 21:10:53 UTC, Adam D. Ruppe wrote: On Sunday, 3 January 2016 at 15:18:30 UTC, Andrei Alexandrescu wrote: How do you mean that? It can, and it does. It has often happened that bugs have been quickly fixed. -- Andrei Maybe quickly fixed in git, but usually not in

Re: vibe.d benchmarks

2016-01-03 Thread Etienne Cimon via Digitalmars-d
On Sunday, 3 January 2016 at 22:16:08 UTC, Nick B wrote: can someone tell me what changes need to be commited, so that we have a chance at getting some decent (or even average) benchmark numbers ? Considering that the best benchmarks are from tools that have all the C calls inlined, I think

Re: Using D and std.ndslice as a Numpy Replacement

2016-01-03 Thread Jack Stouffer via Digitalmars-d-announce
On Monday, 4 January 2016 at 01:09:30 UTC, Ilya wrote: To be clear: there is NO data in Article example. Only CPU registers are used. It is not fair. -- Ilya Ok, I see were I made the mistake, I apologize. I believed that since I was only testing the np.mean line of code, that the lazy

Re: Call C function - Access violation

2016-01-03 Thread TheDGuy via Digitalmars-d-learn
Use an import. import std.string; import std.conv; void main(string[] args) { auto value = toStringz("Hello World"); auto result = write(value); auto s = to!(string)(result); writeln(s); } Also all string literals in D are zero terminated so you could write the call

Re: Proposal: Database Engine for D

2016-01-03 Thread Jakob Jenkov via Digitalmars-d
You could just target your database at data analysis. Then you don't need to care about ACID, transactions etc. Just load all the data into memory, and start analyzing it. Also, you'd typically be scanning over large parts of the data set for each query, so you may not need to support a full

[Issue 15509] IAllocator must be exposed via a reference counted struct

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15509 --- Comment #3 from Dicebot --- I have expected as much. This makes the issue much more generic (and challenging) :) --

Re: Using D and std.ndslice as a Numpy Replacement

2016-01-03 Thread Ilya via Digitalmars-d-announce
On Sunday, 3 January 2016 at 23:18:16 UTC, Andrei Alexandrescu wrote: On 1/2/16 6:24 PM, Ilya Yaroshenko wrote: On Saturday, 2 January 2016 at 23:23:38 UTC, Ilya Yaroshenko wrote: On Saturday, 2 January 2016 at 19:49:05 UTC, Jack Stouffer wrote: http://jackstouffer.com/blog/nd_slice.html

[Issue 15508] Malloctor `deallocate` allocates in GC

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15508 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 13983] RefCounted needs to be pure, @safe, nothrow

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13983 weaselcat changed: What|Removed |Added Blocks||15509 --

[Issue 15509] IAllocator must be exposed via a reference counted struct

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15509 weaselcat changed: What|Removed |Added CC||r9shacklef...@gmail.com

[Issue 13972] Make scoped, Unique, and RefCounted @nogc

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13972 weaselcat changed: What|Removed |Added Blocks||15509 --

[Issue 15471] Show example of associative array initialization in documentation

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15471 Mark Isaacson changed: What|Removed |Added Status|NEW |ASSIGNED

Re: Call C function - Access violation

2016-01-03 Thread Gary Willoughby via Digitalmars-d-learn
On Sunday, 3 January 2016 at 19:24:46 UTC, TheDGuy wrote: On Sunday, 3 January 2016 at 13:25:04 UTC, Gary Willoughby wrote: On Sunday, 3 January 2016 at 13:23:25 UTC, Gary Willoughby wrote: I think I've noticed one problem with the code above. You are using `text.ptr`. You shouldn't do that

Re: Beta D 2.070.0-b1

2016-01-03 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Sunday, 3 January 2016 at 20:20:19 UTC, tsbockman wrote: On Sunday, 3 January 2016 at 19:24:57 UTC, Martin Nowak wrote: First beta for the 2.070.0 release. Any hope for this? https://github.com/D-Programming-Language/dmd/pull/3407#issuecomment-136974686 It's been bugging a lot of

Re: Call C function - Access violation

2016-01-03 Thread anonymous via Digitalmars-d-learn
On 03.01.2016 21:32, TheDGuy wrote: If i type: gcc -c -otest.c.o the 'test.c.o' file is generated but if i type: dmd main.d test.c.o i get: 'Error: unrecognized file extension o'? You're probably on Windows then? dmd doesn't recognize the .o extension on Windows, use .obj instead.

Re: vibe.d benchmarks

2016-01-03 Thread Nick B via Digitalmars-d
On Thursday, 31 December 2015 at 12:44:37 UTC, Daniel Kozak wrote: V Thu, 31 Dec 2015 12:26:12 + yawniek via Digitalmars-d napsáno: obvious typo and thanks for investigating etienne. @daniel: i made similar results over the network. i want to redo them

Re: Call C function - Access violation

2016-01-03 Thread anonymous via Digitalmars-d-learn
On 03.01.2016 22:37, TheDGuy wrote: If i rename "test.o" to "test.obj" i get: 'Error: Module or Dictionary corrupt' My guess is, that means that dmd can't handle the object file format that gcc produces. Disclaimer: I don't know much about object formats, gcc, and Windows. I may be

Re: std.experimental Timeline

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d
On 1/3/16 4:37 PM, Dicebot wrote: Haven't found any issues with std.allocator so far but std.logger definitely is not Phobos ready per my requirements. I have been recently re-evaluating it as possible replacement for old Tango logger we use and found that in several places it forces

Re: Proposal: Database Engine for D

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d
On 1/1/16 6:30 AM, Russel Winder via Digitalmars-d wrote: On Fri, 2016-01-01 at 10:40 +, Kapps via Digitalmars-d wrote: […] Someone else can explain better / more correctly than me, but I believe the issue lies with opCmp and opEquals. You can make expressions like p.Name.equals("James")

[Issue 14168] Class support for RefCounted

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14168 weaselcat changed: What|Removed |Added Blocks||15509 --

Re: Beta D 2.070.0-b1

2016-01-03 Thread tsbockman via Digitalmars-d-announce
On Sunday, 3 January 2016 at 19:24:57 UTC, Martin Nowak wrote: First beta for the 2.070.0 release. Any hope for this? https://github.com/D-Programming-Language/dmd/pull/3407#issuecomment-136974686 It's been bugging a lot of people lately.

Re: Using D and std.ndslice as a Numpy Replacement

2016-01-03 Thread Jack Stouffer via Digitalmars-d-announce
On Monday, 4 January 2016 at 00:24:51 UTC, David Nadlinger wrote: On Sunday, 3 January 2016 at 18:56:07 UTC, Jack Stouffer wrote: I still have to disagree with you that the example I submitted was fair. Accessing global memory in D is going to be much slower than accessing stack memory, […]

[Issue 15508] Malloctor `deallocate` allocates in GC

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15508 b2.t...@gmx.com changed: What|Removed |Added CC||b2.t...@gmx.com --- Comment #1 from

Re: Damage Control: An homage to Rampart (Alpha)

2016-01-03 Thread rcorre via Digitalmars-d-announce
On Sunday, 3 January 2016 at 19:53:25 UTC, Ivan Kazmenko wrote: "If, at the end of a round, you have no territory, you are defeated." I'm almost sure this is currently not true for the last round: the "completed" message showed up for me instead of "defeated". Huh, I couldn't repro that.

Re: D forbearance(Official backing of libs)

2016-01-03 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 3 January 2016 at 15:18:30 UTC, Andrei Alexandrescu wrote: How do you mean that? It can, and it does. It has often happened that bugs have been quickly fixed. -- Andrei Maybe quickly fixed in git, but usually not in the user's system since the average user waits for the next

[Issue 15509] New: IAllocator must be exposed via a reference counted struct

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15509 Issue ID: 15509 Summary: IAllocator must be exposed via a reference counted struct Product: D Version: D2 Hardware: All OS: All Status: NEW

IAllocator

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d
https://issues.dlang.org/show_bug.cgi?id=15509 is up. Any takers? -- Andrei

[Issue 15509] IAllocator must be exposed via a reference counted struct

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15509 --- Comment #2 from Andrei Alexandrescu --- (In reply to Dicebot from comment #1) > Is http://dlang.org/library/std/typecons/ref_counted.html considered up to > the quality for this? I think not, for the time being. Ideally user

Re: Proposal: Database Engine for D

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d
On 1/2/16 3:47 PM, Chris Wright wrote: On Sat, 02 Jan 2016 16:40:16 +, Piotrek wrote: On Friday, 1 January 2016 at 10:00:43 UTC, Kapps wrote: This example shows the difficulty of doing this in D. You can't really have something like `p.Name == "James"`, or `p.Age < 21` translate to SQL

Re: DLanguage IntelliJ plugin released

2016-01-03 Thread Kingsley via Digitalmars-d-announce
On Friday, 1 January 2016 at 15:37:44 UTC, Minas Mina wrote: On Wednesday, 30 December 2015 at 17:17:07 UTC, Israel wrote: On Wednesday, 30 December 2015 at 17:04:15 UTC, Suliman wrote: On Monday, 28 December 2015 at 19:23:17 UTC, Kingsley wrote: On Friday, 25 December 2015 at 17:43:06 UTC,

Re: IAllocator

2016-01-03 Thread Rikki Cattermole via Digitalmars-d
On 04/01/16 11:44 AM, Andrei Alexandrescu wrote: https://issues.dlang.org/show_bug.cgi?id=15509 is up. Any takers? -- Andrei Now I'm worried, this will break a lot of my code. I'm just not convinced that RefCounted is the correct tool for this job. It changes the allocator type. IAllocator is

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Joakim via Digitalmars-d
On Sunday, 3 January 2016 at 17:25:13 UTC, Ola Fosheim Grøstad wrote: On Sunday, 3 January 2016 at 16:56:46 UTC, Joakim wrote: It's more than not being neutral: I pointed out that github suffers from similar categorization errors to the ones you list below. But yes, github stats are really

[Issue 15511] New: fork: Invalid memory operation

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15511 Issue ID: 15511 Summary: fork: Invalid memory operation Product: D Version: D2 Hardware: x86_64 URL: http://dlang.org/ OS: Mac OS X Status: NEW

Re: Proposal: Database Engine for D

2016-01-03 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-03 17:45, Sebastiaan Koppe wrote: Suppose you have this: mixin(db(` Entity Person Fields name -> string age -> integer Query byAge(a -> integer) -> age == a `)); which generates something like this: struct Person { string name; int age } auto

Re: Proposal: Database Engine for D

2016-01-03 Thread rumbu via Digitalmars-d
On Monday, 4 January 2016 at 00:49:29 UTC, Andrei Alexandrescu wrote: Second, ET as a mechanism for SQL interface has other inherent limitations. Consider the "LIKE" operator in SQL, which has no ET equivalent in C++ with similar syntax, and no direct equivalent in LINQ. That doesn't mean

Re: vibe.d benchmarks

2016-01-03 Thread Sönke Ludwig via Digitalmars-d
Am 31.12.2015 um 13:44 schrieb Daniel Kozak via Digitalmars-d: vibe.d has (probably) bug it use threadPerCPU instead of corePerCPU in setupWorkerThreads, here is a commit which make possible to setup it by hand.

Re: Removing The Global GC Lock: Largest Plausible Number of Threads?

2016-01-03 Thread libfds-admin via Digitalmars-d
On Sunday, 3 January 2016 at 18:32:23 UTC, extrawurst wrote: On Wednesday, 30 December 2015 at 23:55:25 UTC, liblfds-admin Release 7.0.0 of liblfds has just been published. Still no osx support ? or is it just not tested ? Well, no build files are provided for out-of-the-box use, because I

[Issue 15510] New: json shouldn't escape forward slash by default

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15510 Issue ID: 15510 Summary: json shouldn't escape forward slash by default Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: enhancement

Re: vibe.d benchmarks

2016-01-03 Thread Sönke Ludwig via Digitalmars-d
Am 04.01.2016 um 04:27 schrieb Etienne Cimon: On Sunday, 3 January 2016 at 22:16:08 UTC, Nick B wrote: can someone tell me what changes need to be commited, so that we have a chance at getting some decent (or even average) benchmark numbers ? Considering that the best benchmarks are from

question about the implementation of Variant

2016-01-03 Thread aki via Digitalmars-d-learn
Following function will return the reference to a object Foo embedded in a Variant. class Foo {} Variant fun() { Variant v; v = new Foo(); return v; } According to the source code of VariantN.opAssign, the assignment is done by: memcpy(, , rhs.sizeof); fptr = !(T);

Re: Proposal: Database Engine for D

2016-01-03 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-04 01:50, Andrei Alexandrescu wrote: Binding D variables to SQL expressions also comes to mind. -- Andrei You have also been pushing a lot for ranges, which I think is good. I would much rather like to view a table as a range, but the algorithms would be preform in the database

[Issue 15276] Allow specification of shell for spawnShell/executeShell/pipeShell

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15276 Mark Isaacson changed: What|Removed |Added Status|NEW |ASSIGNED

Re: Hash Tables in D

2016-01-03 Thread Minas Mina via Digitalmars-d-announce
On Sunday, 3 January 2016 at 19:29:05 UTC, Martin Nowak wrote: On 01/01/2016 04:27 PM, Minas Mina wrote: On Friday, 1 January 2016 at 13:59:35 UTC, Walter Bright wrote: http://minas-mina.com/2016/01/01/associative-arrays/

Re: Proposal: Database Engine for D

2016-01-03 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-04 01:49, Andrei Alexandrescu wrote: Second, ET as a mechanism for SQL interface has other inherent limitations. Consider the "LIKE" operator in SQL, which has no ET equivalent in C++ with similar syntax, and no direct equivalent in LINQ. That doesn't mean the respective languages

[Issue 15503] Namespace lookup not following scoping rules

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15503 Walter Bright changed: What|Removed |Added See Also|

[Issue 15389] extern(C++) forward referencing problem

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15389 Walter Bright changed: What|Removed |Added See Also|

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/2/2016 11:29 PM, Manu via Digitalmars-d wrote: This is why I talk about 'real-world' code, it's never that simple. String for instance, there are a lot of string functions; it depends on lots of stuff, and basically everything depends on string. Examples of circular references like this are

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/2/2016 11:17 PM, Manu via Digitalmars-d wrote: I'll try and reduce this one again... Thanks, I appreciate the effort you're making. BTW, please tag all C++ related bug reports with the "C++" keyword in bugzilla.

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/3/2016 12:24 AM, Walter Bright wrote: On 1/2/2016 11:17 PM, Manu via Digitalmars-d wrote: I'll try and reduce this one again... Thanks, I appreciate the effort you're making. BTW, please tag all C++ related bug reports with the "C++" keyword in bugzilla. On second thought, I think

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/2/2016 10:39 PM, Manu via Digitalmars-d wrote: On 3 January 2016 at 15:40, Walter Bright via Digitalmars-d > wrote: On 1/2/2016 8:54 PM, Manu via Digitalmars-d wrote: C++ namespacing is causing me endless, and I

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/2/2016 10:56 PM, Manu via Digitalmars-d wrote: I don't want that. That's what modules are for. C++ namespaces are not modules, either in C++ or D. We investigated making them 'special' modules, and discarded that as unworkable. Given a C++ symbol 'NS::CSymbol', the D symbol

[Issue 15389] extern(C++) forward referencing problem

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15389 Walter Bright changed: What|Removed |Added CC|

Re: Help convert a C++ header to D

2016-01-03 Thread Rikki Cattermole via Digitalmars-d-learn
On 03/01/16 9:26 PM, Arialis Majoris wrote: On Sunday, 3 January 2016 at 06:07:09 UTC, Rikki Cattermole wrote: On 03/01/16 7:04 PM, Arialis Majoris wrote: I have a rather large header file used to write plugins for reaper: http://pastebin.com/Eebv1e0M This file, unfortunately may change

Re: Help convert a C++ header to D

2016-01-03 Thread Arialis Majoris via Digitalmars-d-learn
On Sunday, 3 January 2016 at 06:07:09 UTC, Rikki Cattermole wrote: On 03/01/16 7:04 PM, Arialis Majoris wrote: I have a rather large header file used to write plugins for reaper: http://pastebin.com/Eebv1e0M This file, unfortunately may change quite often depending on the version of reaper.

Re: Password Storage

2016-01-03 Thread sarn via Digitalmars-d-learn
On Friday, 27 November 2015 at 00:17:34 UTC, brian wrote: 3) pre- or post-pend the salt to the password entered (apparently there is a difference??) Sorry to revive an old thread, but I wrote a blog post about this question:

[Issue 15504] New: core.demangle uses exception handling for normal control flow

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15504 Issue ID: 15504 Summary: core.demangle uses exception handling for normal control flow Product: D Version: D2 Hardware: All OS: All Status: NEW

RedBlackTree and myClass

2016-01-03 Thread AntonSotov via Digitalmars-d-learn
import std.container.rbtree; class myClass { string str; } int main() { auto tree = new RedBlackTree!myClass; return 0; } Error: mutable method object.Object.opCmp is not callable using a inout object Error: template instance std.functional.binaryFun!("a < b", "a",

Re: extern(C++, ns)

2016-01-03 Thread Manu via Digitalmars-d
On 3 January 2016 at 18:03, Walter Bright via Digitalmars-d wrote: > > C++ doesn't have a module structure, It's called the filesystem ;) .. People use folders and filenames to describe what would be 'modules' in C, if C was said to have modules. Sometimes they make

Re: Help convert a C++ header to D

2016-01-03 Thread Arialis Majoris via Digitalmars-d-learn
On Sunday, 3 January 2016 at 08:29:22 UTC, Rikki Cattermole wrote: On 03/01/16 9:26 PM, Arialis Majoris wrote: On Sunday, 3 January 2016 at 06:07:09 UTC, Rikki Cattermole wrote: On 03/01/16 7:04 PM, Arialis Majoris wrote: [...] It's really quite simple. You would probably only need like 2

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/2/2016 11:34 PM, Manu via Digitalmars-d wrote: On 3 January 2016 at 17:02, Walter Bright via Digitalmars-d wrote: Your news software is double posting again (as text and again as html) I'm using gmail, the worlds single most popular mail client by a

[Issue 15389] extern(C++) forward referencing problem

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15389 Walter Bright changed: What|Removed |Added Keywords||C++ --

[Issue 15389] extern(C++) forward referencing problem

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15389 Walter Bright changed: What|Removed |Added Hardware|x86_64 |All

Re: Unclear about the benefits of D over C++ and Java

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 04:25:55 UTC, israel wrote: But maybe its just me, maybe im too young to know the olden days of the 80s/90s where C++ was a godsend compared to C. Or was it? I dont know, i wasnt alive... C++ was hyped up in the press and commercial sector because it provided

[Issue 15388] extern(C++) - typeof(null) should mangle as nullptr_t

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15388 --- Comment #1 from Manu --- Maybe we should also define: alias null_t = typeof(null); I wanted this for a long time before I thought of typeof(null), which worked as I expected. --

Re: extern(C++, ns)

2016-01-03 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-03 06:40, Walter Bright wrote: I do not understand what difficulty you are having with this. I think what Manu is finding difficult is that "extern(C++, ns)" creates a symbol at the D side. Which is kind of unexpected as no other for of "extern" works like that. That also makes

Re: D forbearance(Official backing of libs)

2016-01-03 Thread Andrei Alexandrescu via Digitalmars-d
On 1/1/16 9:11 PM, tsbockman wrote: On Saturday, 2 January 2016 at 01:39:58 UTC, Adam D. Ruppe wrote: I've gotten bug reports and had a fix live inside ten minutes. Phobos doesn't, and probably can't, work at that kind of pace. No kidding... How do you mean that? It can, and it does. It has

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread rsw0x via Digitalmars-d
On Sunday, 3 January 2016 at 15:17:46 UTC, Joakim wrote: On Sunday, 3 January 2016 at 14:22:39 UTC, rsw0x wrote: On Sunday, 3 January 2016 at 14:15:46 UTC, Bubbasaur wrote: [...] because it's not in any way accurate e.g, https://github.com/golang/go/wiki/GoUsers vs

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 14:43:00 UTC, Bubbasaur wrote: 1 Java21.465% +5.94% 2 C 16.036% -0.67% 3 C++ 6.914% +0.21% 4 C# 4.707% -0.34% 5 Python 3.854% +1.24% 6 PHP 2.706% -1.08% 7 Visual Basic .NET 2.582% +1.51% 8

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Basile B. via Digitalmars-d
On Sunday, 3 January 2016 at 15:13:01 UTC, Bubbasaur wrote: On Friday, 1 January 2016 at 20:38:31 UTC, Bubbasaur wrote: Good news... Well I'll stop this discussing about this list. I just posted this because I thought It would be good for the users. By the way, the Jan 2016 list is out and

Re: Unclear about the benefits of D over C++ and Java

2016-01-03 Thread Dibyendu Majumdar via Digitalmars-d
Hi, I am looking to choose between D, Swift and Rust for a project that I am currently coding in C++. So far D seems the alternative but I guess I won't know until I try out a few things. Is this the right forum to ask questions or should questions be sent to another forum? Regards

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 15:34:13 UTC, Basile B. wrote: and that's there is never great wins or major decays. Their ranking is only meaningful on a long scale... It is only meaningful for tiobe.com's SEO ranking. Any other use is completely and utterly _delusional_.

Circular dependencies in Phobos

2016-01-03 Thread tsbockman via Digitalmars-d
How important is it to avoid circular dependencies in Phobos? I'm wondering because I have divided my work-in-progress std.checkedint module into various submodules to make it easier for people to import only the part they actually want to use. However, most of these submodules depend at

Re: Unclear about the benefits of D over C++ and Java

2016-01-03 Thread tsbockman via Digitalmars-d
On Sunday, 3 January 2016 at 15:38:18 UTC, Dibyendu Majumdar wrote: Hi, I am looking to choose between D, Swift and Rust for a project that I am currently coding in C++. So far D seems the alternative but I guess I won't know until I try out a few things. Is this the right forum to ask

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 15:17:46 UTC, Joakim wrote: As Bubba says, in what way is it not accurate? You list corporate usage of Go and D, but his comment wasn't about that. In every way!!! Tiobe is a cultural viral marketing phenomenon, but a statistical and scientific disaster. Go may

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/3/2016 6:45 AM, Jacob Carlborg wrote: On 2016-01-03 08:04, Walter Bright wrote: It's a bug if circular imports do not work. But circular imports are not allowed in Go, and I consider them as something to avoid. They can be very confusing to try and follow. Either they're supported and

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Joakim via Digitalmars-d
On Sunday, 3 January 2016 at 12:43:13 UTC, Ola Fosheim Grøstad wrote: On Friday, 1 January 2016 at 23:12:39 UTC, rsw0x wrote: doesn't seem very reliable TIOBE is completely unreliable. It's basically a hoax, IMO. I guess the company only keeps it alive as a means of marketing for their

Re: extern(C++, ns)

2016-01-03 Thread Walter Bright via Digitalmars-d
On 1/3/2016 7:02 AM, Jacob Carlborg wrote: On 2016-01-03 06:40, Walter Bright wrote: I do not understand what difficulty you are having with this. I think what Manu is finding difficult is that "extern(C++, ns)" creates a symbol at the D side. Which is kind of unexpected as no other for of

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Joakim via Digitalmars-d
On Sunday, 3 January 2016 at 15:54:53 UTC, Ola Fosheim Grøstad wrote: On Sunday, 3 January 2016 at 15:17:46 UTC, Joakim wrote: As Bubba says, in what way is it not accurate? You list corporate usage of Go and D, but his comment wasn't about that. In every way!!! Tiobe is a cultural viral

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 16:10:49 UTC, Joakim wrote: I have no real opinion on the validity of TIOBE That's sad!!! but I think you overrate the importance of github and overestimate use of javascript. Of course, there's no good way to settle that question. Actually there is. If you

Re: RedBlackTree and myClass

2016-01-03 Thread Tobi G. via Digitalmars-d-learn
On Sunday, 3 January 2016 at 14:49:59 UTC, tsbockman wrote: On Sunday, 3 January 2016 at 10:55:05 UTC, AntonSotov wrote: import std.container.rbtree; class myClass { string str; } int main() { auto tree = new RedBlackTree!myClass; return 0; } Error: mutable method

Re: extern(C++, ns)

2016-01-03 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-03 08:04, Walter Bright wrote: It's a bug if circular imports do not work. But circular imports are not allowed in Go, and I consider them as something to avoid. They can be very confusing to try and follow. Either they're supported and should work every single time or they

Re: extern(C++, ns)

2016-01-03 Thread Jacob Carlborg via Digitalmars-d
On 2016-01-03 08:17, Manu via Digitalmars-d wrote: I'll try and reduce this one again... Have you tried using dustmite [1] to reduce the code? It will automatically modify/reduce the source code as long as the issue persists. When it no longer can modify the source code while the issue

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 14:43:00 UTC, Bubbasaur wrote: 9 Assembly language 2.095% +0.92% 10 Ruby2.047% +0.92% This... haha... Do you really think people spend more time writing assembly code in 2015 than Ruby? 2% assembly? That's highly unlikely.

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 3 January 2016 at 14:50:48 UTC, Ola Fosheim Grøstad wrote: On Sunday, 3 January 2016 at 14:43:00 UTC, Bubbasaur wrote: 9 Assembly language 2.095% +0.92% 10 Ruby2.047% +0.92% This... haha... Do you really think people spend more time writing assembly code in

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Bubbasaur via Digitalmars-d
On Sunday, 3 January 2016 at 14:50:48 UTC, Ola Fosheim Grøstad wrote: On Sunday, 3 January 2016 at 14:43:00 UTC, Bubbasaur wrote: 9 Assembly language 2.095% +0.92% 10 Ruby2.047% +0.92% This... haha... Do you really think people spend more time writing assembly code in

[Issue 15506] VS2015 crash while debugging

2016-01-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15506 --- Comment #1 from Manu --- Interestingly, if I step over the function instead of stepping into it, there is no problem, the function works, no crash, does what it's supposed to. It's just that if I step into it, and evaluate

Re: TIOBE December 2015 - D rose 5 positions

2016-01-03 Thread Bubbasaur via Digitalmars-d
On Friday, 1 January 2016 at 20:38:31 UTC, Bubbasaur wrote: Good news... Well I'll stop this discussing about this list. I just posted this because I thought It would be good for the users. By the way, the Jan 2016 list is out and D rose 2 positions, now is 21th. Bubba.

Re: RedBlackTree and myClass

2016-01-03 Thread AntonSotov via Digitalmars-d-learn
tsbockman, Many thanks! Now I work for me

  1   2   3   >