Re: Accessing COM Objects

2017-03-10 Thread Inquie via Digitalmars-d-learn
On Friday, 17 June 2016 at 08:09:42 UTC, John wrote: On Wednesday, 15 June 2016 at 21:06:01 UTC, Joerg Joergonson wrote: My thinking is that CoCreateinstance is suppose to give us a pointer to the interface so we can use it, if all this stuff is crashing does that mean the interface is invalid

Re: Accessing COM Objects

2017-03-10 Thread Inquie via Digitalmars-d-learn
On Friday, 17 June 2016 at 08:09:42 UTC, John wrote: On Wednesday, 15 June 2016 at 21:06:01 UTC, Joerg Joergonson wrote: [...] The problem is Photoshop hasn't provided an interface with methods that can be called directly. They don't exist on the interface, hence them being commented out.

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ola Fosheim Grostad via Digitalmars-d
On Friday, 10 March 2017 at 23:00:16 UTC, XavierAP wrote: IMHO... Only from a typical C++ centric perspective can it be claimed that C++11 and higher have not copied (not from D which was most of the time not first). Neither C++ or D have any significant original features. the first. And

Re: [Tidbit] making your D code more modular & unittestable

2017-03-10 Thread Walter Bright via Digitalmars-d
On 3/8/2017 1:34 PM, H. S. Teoh via Digitalmars-d wrote: [...] Bingo. If your algorithmic code includes code to read / write files, that's a big sign things are not properly encapsulated in the code. Using ranges is a great way to accomplish this, and as you discovered, a bonus is that

Re: Comparing Instances of Classes

2017-03-10 Thread DRex via Digitalmars-d-learn
On Friday, 10 March 2017 at 20:27:09 UTC, Meta wrote: On Friday, 10 March 2017 at 17:08:42 UTC, Whatsthisnow wrote: I guess i am just too used to the java way of x.equals(object) which at the source is exactly 'return this == object' Java would return false here too, though, if it actually

Re: From the D Blog: Editable and Runnable Doc Examples on dlang.org

2017-03-10 Thread Joakim via Digitalmars-d-announce
On Wednesday, 8 March 2017 at 22:16:56 UTC, Seb wrote: On Wednesday, 8 March 2017 at 20:12:51 UTC, Joakim wrote: On Wednesday, 8 March 2017 at 13:24:15 UTC, Mike Parker wrote: Sebastian Wilzbach lays out how the new editable & runnable documentation examples came to be. The blog:

Re: DMD win32.mak error

2017-03-10 Thread Paul D Anderson via Digitalmars-d-learn
On Saturday, 11 March 2017 at 00:34:03 UTC, Paul D Anderson wrote: On Friday, 10 March 2017 at 22:04:23 UTC, Paul D Anderson wrote: While building DMD -- "make -fwin32.mak release" -- I received the following error message: echo "2.073.2" > verstr.h Error: don't know how to make

[Issue 17253] New: dmd win32.mak error in 2.073.2

2017-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17253 Issue ID: 17253 Summary: dmd win32.mak error in 2.073.2 Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: major Priority: P1

Re: DMD + Dynamic Library.

2017-03-10 Thread Cassio Butrico via Digitalmars-d-learn
On Wednesday, 8 March 2017 at 18:21:35 UTC, Damien Gibson wrote: On Wednesday, 8 March 2017 at 06:28:47 UTC, Jerry wrote: You have to use "export" for any symbol to be visible from a dll. On Windows by default nothing is exported. Would "export" and "export extern(D):" not be the same? Im

Re: opIndex() may hide opSlice()

2017-03-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, March 10, 2017 14:07:59 H. S. Teoh via Digitalmars-d wrote: > On Fri, Mar 10, 2017 at 12:36:35PM -0800, Jonathan M Davis via Digitalmars-d wrote: > > I can certainly understand that there are folks who really do care > > about this stuff, but it's completely outside of what I deal

Re: DMD win32.mak error

2017-03-10 Thread Paul D Anderson via Digitalmars-d-learn
On Friday, 10 March 2017 at 22:04:23 UTC, Paul D Anderson wrote: While building DMD -- "make -fwin32.mak release" -- I received the following error message: echo "2.073.2" > verstr.h Error: don't know how to make '../res/default_ddoc_theme/ddoc' --- error level 1 I'm guessing it might be a

Re: Rename 'D' to 'D++'

2017-03-10 Thread XavierAP via Digitalmars-d
On Friday, 10 March 2017 at 20:31:59 UTC, Ola Fosheim Grøstad wrote: On Friday, 10 March 2017 at 19:53:52 UTC, Ali Çehreli wrote: - constexpr (a poor man's CTFE) - Type inference - Range-based for - Lambdas As far as I can tell C++11 was mostly an absorption of existing practices, largely

Re: Zcoin implementation bug enabled attacker to create 548, 000 Zcoins

2017-03-10 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 10, 2017 at 09:07:36PM +, XavierAP via Digitalmars-d wrote: > On Friday, 10 March 2017 at 19:02:06 UTC, H. S. Teoh wrote: [...] > > AFAIK Walter's stance is that overloading operators with semantics > > other than generalizations of arithmetic operators are a bad idea. > > This is

Re: opIndex() may hide opSlice()

2017-03-10 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 10, 2017 at 12:36:35PM -0800, Jonathan M Davis via Digitalmars-d wrote: > On Friday, March 10, 2017 10:43:43 H. S. Teoh via Digitalmars-d wrote: [...] > Well, thanks for the explanation, but I'm sure that part of the > problem here is that an operation like arr[x, y..z] doesn't even

DMD win32.mak error

2017-03-10 Thread Paul D Anderson via Digitalmars-d-learn
While building DMD -- "make -fwin32.mak release" -- I received the following error message: echo "2.073.2" > verstr.h Error: don't know how to make '../res/default_ddoc_theme/ddoc' --- error level 1 I'm guessing it might be a build configuration problem on my end, but what is the problem?

Re: TLS

2017-03-10 Thread sarn via Digitalmars-d-learn
On Friday, 10 March 2017 at 19:24:29 UTC, bauss wrote: Mark your variables with __gshared. I would say shred, but it has some restrictions to it, where __gshared is the equivalent to global variables in C. immutable variables are also not put in TLS.

Re: opIndex() may hide opSlice()

2017-03-10 Thread XavierAP via Digitalmars-d
On Friday, 10 March 2017 at 20:36:35 UTC, Jonathan M Davis wrote: problem here is that an operation like arr[x, y..z] doesn't even make sense to me. I have no idea what that does. https://www.mathworks.com/help/matlab/math/matrix-indexing.html#f1-85544 You can stop reading as soon as it

Re: CTFE Status 2

2017-03-10 Thread Nordlöw via Digitalmars-d
On Friday, 10 March 2017 at 11:32:14 UTC, Stefan Koch wrote: Also work is underway to finally support slicing, which is crucial to using phobos algorithms. Incredible diligence.

Re: Zcoin implementation bug enabled attacker to create 548, 000 Zcoins

2017-03-10 Thread XavierAP via Digitalmars-d
On Friday, 10 March 2017 at 19:02:06 UTC, H. S. Teoh wrote: On Fri, Mar 10, 2017 at 07:47:43AM +, XavierAP via Digitalmars-d wrote: On Thursday, 9 March 2017 at 15:42:22 UTC, qznc wrote: [...] > Maybe we want to support weird DSLs, where operators are > reused with very different

[Issue 16642] byCodeUnit doesn't work AutodecodableStrings unless they're actually strings or alias a variable that's a string

2017-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16642 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6e3d41cfe92d0af0360002db6436d2ec98f503af Fix issue 16642: byCodeUnit doesn't work properly with

Re: opIndex() may hide opSlice()

2017-03-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, March 10, 2017 10:43:43 H. S. Teoh via Digitalmars-d wrote: > On Fri, Mar 10, 2017 at 07:41:31AM -0800, Jonathan M Davis via Digitalmars-d wrote: > > On Friday, March 10, 2017 14:15:45 Nick Treleaven via Digitalmars-d wrote: > > > On Friday, 10 March 2017 at 01:10:21 UTC, H. S. Teoh

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 10 March 2017 at 19:53:52 UTC, Ali Çehreli wrote: - constexpr (a poor man's CTFE) - Type inference - Range-based for - Lambdas As far as I can tell C++11 was mostly an absorption of existing practices, largely syntactical in nature. Lambdas are only syntactical sugar over function

Re: Comparing Instances of Classes

2017-03-10 Thread Meta via Digitalmars-d-learn
On Friday, 10 March 2017 at 17:08:42 UTC, Whatsthisnow wrote: I guess i am just too used to the java way of x.equals(object) which at the source is exactly 'return this == object' Java would return false here too, though, if it actually did `this == object` in its default compare method. If

Re: opIndex() may hide opSlice()

2017-03-10 Thread jmh530 via Digitalmars-d
On Friday, 10 March 2017 at 18:43:43 UTC, H. S. Teoh wrote: So probably we should leave it the way it is (and perhaps clarify that in the spec), as deprecating the "old" use of opSlice in the 1-dimensional case would cause problems. ndslice just recently added an indexed function

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ali Çehreli via Digitalmars-d
On 03/10/2017 11:43 AM, Ola Fosheim Grøstad wrote: On Friday, 10 March 2017 at 19:15:49 UTC, Ali Çehreli wrote: C++11 was a big step forward for C++ that closed the gap with D. At the time, it felt to me like they copied everything from D but now I know that programming language ideas are

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 10 March 2017 at 19:15:49 UTC, Ali Çehreli wrote: C++11 was a big step forward for C++ that closed the gap with D. At the time, it felt to me like they copied everything from D but now I know that programming language ideas are everywhere and it's hard to pinpoint who borrowed what

Re: CTFE Status 2

2017-03-10 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 10, 2017 at 11:32:14AM +, Stefan Koch via Digitalmars-d wrote: > On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: > > [ ... ] > > Time for an update. > > I am currently working on integrating 64bit values into codegen API. > However, a backend may not have native

Re: Rename 'D' to 'D++'

2017-03-10 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 10, 2017 at 05:11:39PM +, Jack Stouffer via Digitalmars-d wrote: [...] > Only expect meaningful replies to threads with meaning. As the geek would say: ASCII stupid question, getty stupid ANSI. :-D T -- EMACS = Extremely Massive And Cumbersome System

Re: Comparing Instances of Classes

2017-03-10 Thread Ali Çehreli via Digitalmars-d-learn
On 03/10/2017 08:22 AM, DRex wrote: Error: function app.A.opEquals does not override any function, did you mean to override 'object.Object.opEquals'? My A class appears exactly as mentioned in your comment... FWIW, here's some other info:

Re: TLS

2017-03-10 Thread bauss via Digitalmars-d-learn
On Friday, 10 March 2017 at 07:33:44 UTC, M-exe wrote: On Friday, 10 March 2017 at 07:17:22 UTC, rikki cattermole wrote: D does not support Windows XP. If you absolutely require it, you will have to contact Walter about support. Let me care about it ;) I just need help with the TLS :) Mark

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ali Çehreli via Digitalmars-d
On 03/10/2017 10:48 AM, Bastiaan Veelo wrote: > You say D is an expanded version of C++. I think it's more an expanded > version of C, surpassing C++. C++11 was a big step forward for C++ that closed the gap with D. At the time, it felt to me like they copied everything from D but now I know

Re: Zcoin implementation bug enabled attacker to create 548, 000 Zcoins

2017-03-10 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 10, 2017 at 07:47:43AM +, XavierAP via Digitalmars-d wrote: > On Thursday, 9 March 2017 at 15:42:22 UTC, qznc wrote: [...] > > Maybe we want to support weird DSLs, where operators are reused with > > very different semantics? For example, the pyparsing parser > > generator allows

Re: opIndex() may hide opSlice()

2017-03-10 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 10, 2017 at 07:41:31AM -0800, Jonathan M Davis via Digitalmars-d wrote: > On Friday, March 10, 2017 14:15:45 Nick Treleaven via Digitalmars-d wrote: > > On Friday, 10 March 2017 at 01:10:21 UTC, H. S. Teoh wrote: [...] > > > Using opSlice() for slicing (i.e., arr[]) is old, > > >

Re: Rename 'D' to 'D++'

2017-03-10 Thread Bastiaan Veelo via Digitalmars-d
On Friday, 10 March 2017 at 15:16:56 UTC, Traktor TOni wrote: D has chosen to use the naming scheme of C and as such it should be honest and use D++ because that's what D is: An expanded version of the former language. "D is C++ done right", that used to be one of D's slogans. It doesn't

Re: Intellij D Language plugin v1.11 released

2017-03-10 Thread singingbush via Digitalmars-d-announce
On Friday, 10 March 2017 at 13:16:45 UTC, Martin Tschierschke wrote: On Thursday, 9 March 2017 at 22:46:12 UTC, singingbush wrote: the new build fixes compatibility issues with Intellij IDEA 2016.3.* versions. It should be in the plugin repo soon but in meantime can be downloaded from

[Issue 17252] Invalid PATH variable in build script

2017-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17252 Rainer Koschnick changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17252] New: Invalid PATH variable in build script

2017-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17252 Issue ID: 17252 Summary: Invalid PATH variable in build script Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: major

Berlin D Meetup March 2017

2017-03-10 Thread Ben Palmer via Digitalmars-d-announce
Hi All, The Berlin March D meetup is happening on Friday the 17th at 19:30 at Berlin Co-Op (http://co-up.de/) on the fifth floor. This meetup features the return of Prof Brus to continue talking about game development. "A followup to my previous talk, simply titled "Intro to game

Re: opIndex() may hide opSlice()

2017-03-10 Thread Patrick Schluter via Digitalmars-d
On Friday, 10 March 2017 at 15:41:31 UTC, Jonathan M Davis wrote: On Friday, March 10, 2017 14:15:45 Nick Treleaven via Digitalmars-d wrote: On Friday, 10 March 2017 at 01:10:21 UTC, H. S. Teoh wrote: > On Fri, Mar 10, 2017 at 01:07:33AM +, XavierAP via > > Digitalmars-d wrote: >> The web

[Issue 17251] New: Appender.put errors out with const input range elements

2017-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17251 Issue ID: 17251 Summary: Appender.put errors out with const input range elements Product: D Version: D2 Hardware: All OS: All Status: NEW

Re: [Tidbit] making your D code more modular & unittestable

2017-03-10 Thread bpr via Digitalmars-d
On Friday, 10 March 2017 at 14:58:09 UTC, Nick Treleaven wrote: On Thursday, 9 March 2017 at 20:54:23 UTC, Nick Sabalausky Wishlist for D3: Some brilliant form of sugar for declaring a function that takes a range. auto parseFile()(auto input if isRandomAccessRangeOf!ubyte && hasSlicing) {

Re: Rename 'D' to 'D++'

2017-03-10 Thread Jack Stouffer via Digitalmars-d
On Friday, 10 March 2017 at 16:08:15 UTC, Traktor TOni wrote: Please stop spamming my thread with joke responses. When you play stupid games, you win stupid prizes. "Hey everyone, why don't you completely abandon 15+ years of building your brand on the name D and change it to D++, which

Re: Comparing Instances of Classes

2017-03-10 Thread Whatsthisnow via Digitalmars-d-learn
On Friday, 10 March 2017 at 16:47:47 UTC, Adam D. Ruppe wrote: On Friday, 10 March 2017 at 16:36:17 UTC, DRex wrote: I'm fairly new to D, but this seems to be quite a pain in the rear for a simple comparison of instances of classes...really odd that comparing instances of classes in D requires

Re: Comparing Instances of Classes

2017-03-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 10 March 2017 at 16:36:17 UTC, DRex wrote: I'm fairly new to D, but this seems to be quite a pain in the rear for a simple comparison of instances of classes...really odd that comparing instances of classes in D requires that messing around when D seems all about simplifying

Re: Comparing Instances of Classes

2017-03-10 Thread DRex via Digitalmars-d-learn
On Friday, 10 March 2017 at 16:30:00 UTC, Adam D. Ruppe wrote: On Friday, 10 March 2017 at 16:22:18 UTC, DRex wrote: Error: function app.A.opEquals does not override any function, did you mean to override 'object.Object.opEquals'? Oh sorry, maybe I messed up the const. Try: override bool

Re: Ocean v3.0.0: First fully public release!

2017-03-10 Thread Andrea Fontana via Digitalmars-d-announce
On Friday, 10 March 2017 at 15:19:51 UTC, Leandro Lucarella wrote: Hi dear D community! We wanted to share with you some nice news and big milestone: we are (finally!) going completely public with Ocean development! From github page: General purpose, platform-dependant, high-performance

Re: Comparing Instances of Classes

2017-03-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 10 March 2017 at 16:22:18 UTC, DRex wrote: Error: function app.A.opEquals does not override any function, did you mean to override 'object.Object.opEquals'? Oh sorry, maybe I messed up the const. Try: override bool opEquals(A rhs) { ... } and if the compiler still complains

Re: Rename 'D' to 'D++'

2017-03-10 Thread Andrea Fontana via Digitalmars-d
On Friday, 10 March 2017 at 14:29:27 UTC, Chris wrote: According to Wikipedia, D was influenced by: C, C++, C#, Eiffel, Java, Python (English version) C, C++, Java, C#, Python, Ruby (Spanish and German version) According to italian wikipedia instead: C, C++, C#, Eiffel, Java, Python, Ruby

Re: opIndex() may hide opSlice()

2017-03-10 Thread XavierAP via Digitalmars-d
On Friday, 10 March 2017 at 14:15:45 UTC, Nick Treleaven wrote: Also deprecating nullary opSlice() would work against defining opSlice(int low = 0, int high = length). The same call [] can go to a variadic opIndex(T[] indices ...) So many possibilities :_)

Re: Comparing Instances of Classes

2017-03-10 Thread DRex via Digitalmars-d-learn
On Friday, 10 March 2017 at 16:13:21 UTC, Adam D. Ruppe wrote: On Friday, 10 March 2017 at 16:08:05 UTC, DRex wrote: Am I missing something here? Yeah, you need to implement a custom equality operator. class A { int member; override bool opEquals(const A rhs) { return

Re: Comparing Instances of Classes

2017-03-10 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 10 March 2017 at 16:08:05 UTC, DRex wrote: Am I missing something here? Yeah, you need to implement a custom equality operator. class A { int member; override bool opEquals(const A rhs) { return this.member == rhs.member; // and other members that need to be equal

Re: opIndex() may hide opSlice()

2017-03-10 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 10 March 2017 at 15:41:31 UTC, Jonathan M Davis wrote: Yeah, I've never understood how it made any sense for opIndex to be used for slicing, and I've never used it that way. Yeah, I just saw that yesterday in a Phobos type and was like "wtf did they misname it"... but it worked.

Re: Rename 'D' to 'D++'

2017-03-10 Thread Traktor TOni via Digitalmars-d
On Friday, 10 March 2017 at 15:33:14 UTC, Abdulhaq wrote: On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D developers should at least be honest with themselves. well the tractor derives from the shire horse and Toni comes from Antonius

Comparing Instances of Classes

2017-03-10 Thread DRex via Digitalmars-d-learn
Hi, I am trying to compare two instances of a class. I created a test program to try this, but every method I use to compare the instances always returns false. this is my code to test comparison class A { this() { } } void main() { A a = new A(); A a2 = new A();

Re: opIndex() may hide opSlice()

2017-03-10 Thread XavierAP via Digitalmars-d
On Friday, 10 March 2017 at 15:41:31 UTC, Jonathan M Davis wrote: On Friday, March 10, 2017 14:15:45 Nick Treleaven via Digitalmars-d wrote: On Friday, 10 March 2017 at 01:10:21 UTC, H. S. Teoh wrote: > > Using opSlice() for slicing (i.e., arr[]) is old, > backward-compatible > behaviour. This

Re: opIndex() may hide opSlice()

2017-03-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, March 10, 2017 14:15:45 Nick Treleaven via Digitalmars-d wrote: > On Friday, 10 March 2017 at 01:10:21 UTC, H. S. Teoh wrote: > > On Fri, Mar 10, 2017 at 01:07:33AM +, XavierAP via > > > > Digitalmars-d wrote: > >> The web reference tersely says under its *Slice* Operator > >>

Re: Rename 'D' to 'D++'

2017-03-10 Thread Abdulhaq via Digitalmars-d
On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D developers should at least be honest with themselves. well the tractor derives from the shire horse and Toni comes from Antonius so you should be honest too and rename yourself to

Ocean v3.0.0: First fully public release!

2017-03-10 Thread Leandro Lucarella via Digitalmars-d-announce
Hi dear D community! We wanted to share with you some nice news and big milestone: we are (finally!) going completely public with Ocean development! Starting with the new v3.0.0 release all the development done to the library will go to the public repository (and actually this goes too for

Re: Rename 'D' to 'D++'

2017-03-10 Thread rikki cattermole via Digitalmars-d
On 11/03/2017 4:16 AM, Traktor TOni wrote: On Friday, 10 March 2017 at 15:10:34 UTC, Chris wrote: Why, then, is Rust called "Rust"? "C++" was chosen to signal that it's an improvement of C. "D++" would mean an improvement of D. If D is improved C++, then we would have to call it "C". This

Re: Rename 'D' to 'D++'

2017-03-10 Thread Traktor TOni via Digitalmars-d
On Friday, 10 March 2017 at 15:10:34 UTC, Chris wrote: Why, then, is Rust called "Rust"? "C++" was chosen to signal that it's an improvement of C. "D++" would mean an improvement of D. If D is improved C++, then we would have to call it "C". This thread is absurd and leads nowhere.

Re: Rename 'D' to 'D++'

2017-03-10 Thread Chris via Digitalmars-d
On Friday, 10 March 2017 at 14:39:18 UTC, Traktor TOni wrote: On Friday, 10 March 2017 at 14:29:27 UTC, Chris wrote: On Friday, 10 March 2017 at 14:22:52 UTC, TooHuman wrote: On Friday, 10 March 2017 at 14:19:17 UTC, Traktor TOni wrote: On Friday, 10 March 2017 at 12:23:11 UTC, Ethan Watson

Re: [Tidbit] making your D code more modular & unittestable

2017-03-10 Thread Nick Treleaven via Digitalmars-d
On Thursday, 9 March 2017 at 20:54:23 UTC, Nick Sabalausky (Abscissa) wrote: On 03/08/2017 04:34 PM, H. S. Teoh via Digitalmars-d wrote: auto parseFile(Slice)(Slice input) if (isRandomAccessRange!Slice && hasSlicing!Slice && is(ElementType!Slice :

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 10 March 2017 at 14:39:18 UTC, Traktor TOni wrote: You dont have to get all salty about it, just admit that D is more like C++ and then we can propose the name change officially on github. Maybe this would help with adoption too, Rust has no problem calling itself a successor to C++

Re: Rename 'D' to 'D++'

2017-03-10 Thread XavierAP via Digitalmars-d
http://i0.kym-cdn.com/photos/images/original/000/233/260/687.jpg ok I'll bite 0:) On Friday, 10 March 2017 at 14:19:17 UTC, Traktor TOni wrote: My point is that D is much more like C++ than it is like C Exactly. So that you understand, let's say "C" means "horse", "C++" means "cyborg

Re: Where do you test syntax of D regexp online?

2017-03-10 Thread Suliman via Digitalmars-d-learn
On Friday, 10 March 2017 at 14:36:48 UTC, Suliman wrote: On Thursday, 9 March 2017 at 16:47:18 UTC, Adam D. Ruppe wrote: On Thursday, 9 March 2017 at 16:40:13 UTC, Suliman wrote: How should I write to file result without \r\n\ symbols? auto x = content.matchFirst(bigCodeBlock); File f =

Re: Rename 'D' to 'D++'

2017-03-10 Thread Traktor TOni via Digitalmars-d
On Friday, 10 March 2017 at 14:29:27 UTC, Chris wrote: On Friday, 10 March 2017 at 14:22:52 UTC, TooHuman wrote: On Friday, 10 March 2017 at 14:19:17 UTC, Traktor TOni wrote: On Friday, 10 March 2017 at 12:23:11 UTC, Ethan Watson wrote: On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni

Re: Where do you test syntax of D regexp online?

2017-03-10 Thread Suliman via Digitalmars-d-learn
On Thursday, 9 March 2017 at 16:47:18 UTC, Adam D. Ruppe wrote: On Thursday, 9 March 2017 at 16:40:13 UTC, Suliman wrote: How should I write to file result without \r\n\ symbols? auto x = content.matchFirst(bigCodeBlock); File f = File("foo.txt", "w"); f.write(x); Just f.write(x[0]); to

Re: How can D Forum load so fast?

2017-03-10 Thread bachmeier via Digitalmars-d
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result? This is how Vladimir answered before:

Re: Rename 'D' to 'D++'

2017-03-10 Thread TooHuman via Digitalmars-d
On Friday, 10 March 2017 at 14:19:17 UTC, Traktor TOni wrote: On Friday, 10 March 2017 at 12:23:11 UTC, Ethan Watson wrote: On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D developers should at least be honest with themselves. D++ -

Re: Rename 'D' to 'D++'

2017-03-10 Thread Chris via Digitalmars-d
On Friday, 10 March 2017 at 14:22:52 UTC, TooHuman wrote: On Friday, 10 March 2017 at 14:19:17 UTC, Traktor TOni wrote: On Friday, 10 March 2017 at 12:23:11 UTC, Ethan Watson wrote: On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D

Re: Rename 'D' to 'D++'

2017-03-10 Thread Traktor TOni via Digitalmars-d
On Friday, 10 March 2017 at 12:23:11 UTC, Ethan Watson wrote: On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D developers should at least be honest with themselves. D++ - Because no language has version numbers. Not even C#. Any proof

Re: opIndex() may hide opSlice()

2017-03-10 Thread Nick Treleaven via Digitalmars-d
On Friday, 10 March 2017 at 01:10:21 UTC, H. S. Teoh wrote: On Fri, Mar 10, 2017 at 01:07:33AM +, XavierAP via Digitalmars-d wrote: The web reference tersely says under its *Slice* Operator Overloading chapter [1]: "To overload a[], simply define opIndex with no parameters." Should not

Re: How can D Forum load so fast?

2017-03-10 Thread Vasudev Ram via Digitalmars-d
On Friday, 10 March 2017 at 13:57:06 UTC, Vasudev Ram wrote: On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they

Re: How can D Forum load so fast?

2017-03-10 Thread Vasudev Ram via Digitalmars-d
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result? I think (not verified scientifically)

Re: Intellij D Language plugin v1.11 released

2017-03-10 Thread Martin Tschierschke via Digitalmars-d-announce
On Thursday, 9 March 2017 at 22:46:12 UTC, singingbush wrote: the new build fixes compatibility issues with Intellij IDEA 2016.3.* versions. It should be in the plugin repo soon but in meantime can be downloaded from https://github.com/kingsleyh/DLanguage/releases Looks nice! I have zero

How to write document for methods under static if?

2017-03-10 Thread Yuxuan Shui via Digitalmars-d-learn
Example: /** test type */ struct A(bool T) { static if (T) { /// Case 1 int ok(){ return 1; } } else { /// case 2 int notok(){ return 1; } } /// Other int other() { return 0; } } ///

Re: Rename 'D' to 'D++'

2017-03-10 Thread Chris via Digitalmars-d
On Friday, 10 March 2017 at 12:23:11 UTC, Ethan Watson wrote: On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D developers should at least be honest with themselves. D++ - Because no language has version numbers. Not even C#. Any proof

Re: Rename 'D' to 'D++'

2017-03-10 Thread Ethan Watson via Digitalmars-d
On Friday, 10 March 2017 at 11:25:11 UTC, Traktor TOni wrote: I think the name is just misleading, the D developers should at least be honest with themselves. D++ - Because no language has version numbers. Not even C#. Any proof to the contrary is clearly fake proof.

[Issue 17226] Exception during the generation of an assert message hides AssertError

2017-03-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17226 RazvanN changed: What|Removed |Added CC|

Re: CTFE Status 2

2017-03-10 Thread Stefan Koch via Digitalmars-d
On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote: [ ... ] Time for an update. I am currently working on integrating 64bit values into codegen API. However, a backend may not have native 64bit registers or arithmetic (the x86/arm architectures come to mind) For those a common

Rename 'D' to 'D++'

2017-03-10 Thread Traktor TOni via Digitalmars-d
I think the name is just misleading, the D developers should at least be honest with themselves.

Re: How can D Forum load so fast?

2017-03-10 Thread Chris via Digitalmars-d
On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote: On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they

Re: How can D Forum load so fast?

2017-03-10 Thread Era Scarecrow via Digitalmars-d
On Friday, 10 March 2017 at 09:08:16 UTC, CasparKielwein wrote: On Friday, 10 March 2017 at 09:00:15 UTC, Era Scarecrow wrote: I'd rather we backtrack to more basic Apache/PHP/MySQL and minimal JS without cross scripting or the like. The Forum is actually written in D. As far as I know the

Re: How can D Forum load so fast?

2017-03-10 Thread Walter Bright via Digitalmars-d
On 3/9/2017 11:51 PM, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result? It doesn't have popup ads, autorun videos, trackers, large

Re: How can D Forum load so fast?

2017-03-10 Thread Shachar Shemesh via Digitalmars-d
On 10/03/17 09:51, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result? Maybe, but the NNTP interface routinely has "connection refused"

Re: How can D Forum load so fast?

2017-03-10 Thread CasparKielwein via Digitalmars-d
On Friday, 10 March 2017 at 09:00:15 UTC, Era Scarecrow wrote: On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote: On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: How can they achieve such result? By not using tons of java-script libraries. Not having it bogged down

Re: How can D Forum load so fast?

2017-03-10 Thread Era Scarecrow via Digitalmars-d
On Friday, 10 March 2017 at 08:05:27 UTC, Stefan Koch wrote: On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: How can they achieve such result? By not using tons of java-script libraries. Not having it bogged down certainly makes a huge difference. I can't stand that websites want to

Re: How can D Forum load so fast?

2017-03-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result? Depends on your location, it loads in

Re: How can D Forum load so fast?

2017-03-10 Thread Stefan Koch via Digitalmars-d
On Friday, 10 March 2017 at 07:51:30 UTC, Anon wrote: The whole webpage https://forum.dlang.org/ has only 300KB in size. It not only supports mobile devices, but also loads much faster than general modern web pages. How can they achieve such result? By not using tons of java-script

Re: Better ddoc defaults?

2017-03-10 Thread via Digitalmars-d
On Thursday, 9 March 2017 at 21:08:17 UTC, Yuxuan Shui wrote: I'm using ddoc for the first time. I was naively expecting something resembles dlang.org, and the results is a bit disappointing. So I looked at dlang.org and realized lots and lots of ddoc templates are required to achieve that.