Re: Ncurses deprecated ~master issue

2014-12-03 Thread Matt Soucy via Digitalmars-d-learn
On 12/03/2014 07:07 AM, Paul wrote:
 Sorry if this is a little off-topic, I posted this in the Dub forum on 
 23/11/14 but have had no reply yet:
 
 
 ---
 I read that the use of a branch spec like ~master in dub.json is 
 deprecated. I also read that it could be overriden on a per-project basis by 
 editing the project's dub.selections.json file but I can't find any 
 information about what is actually required in this file and whether any 
 corresponding changes need to be made to dub.json.
 
 I'm trying to use 'ncurses' which doesn't have a version number, only 
 ~master.
 ---
 
 Also, does anyone know how 'beta' the ncurses module actually is, is anyone 
 using it?
 
 Cheers
 
 Paul
So, as far as I know there isn't any plan for versioning that specific library. 
I've used it, however, and it's pretty usable (as much as ncurses goes, at any 
rate).

-- 
Matt Soucy
http://msoucy.me/



signature.asc
Description: OpenPGP digital signature


Re: Creation of 0MQ D project

2014-10-27 Thread Matt Soucy via Digitalmars-d-learn
On 10/27/2014 09:02 PM, Evan Lowry wrote:
 On Tuesday, 28 October 2014 at 00:21:20 UTC, anonymous wrote:
 Line 96 of zmq.d [1]: const char* zmq_strerror(int errnum);
 Should be: const(char)* zmq_strerror(int errnum);
 
 Yep, this seemed to do the trick cleanly. S'all compiling and the examples 
 provided in the repo run. Can submit a pull request, if no-one else has one 
 lined up.
 
 Much thanks!
From the original commit that caused that, it seems that const(char)* was meant 
for that statement..?

-- 
Matt Soucy
http://msoucy.me/



signature.asc
Description: OpenPGP digital signature


Re: Allowing Expressions such as (low value high)

2014-09-04 Thread Matt Soucy via Digitalmars-d-learn
On 09/04/2014 04:03 PM, Nordlöw wrote:
 Are there any programming languages that extend the behaviour of comparison 
 operators to allow expressions such as
 
 if (low  value  high)
 
 ?
 
 This syntax is currently disallowed by DMD.
 
 I'm aware of the risk of a programmer misinterpreting this as
 
 if ((low  value)  high)
 
 Is this the reason why no languages (including D allows it).
 
 I'm asking for in some cases, where value is a long expression, it would be a 
 nice syntatic sugar to use.
Python has this as well:

```
def foo():
print Called foo
return 10

if 0 = foo() = 50:
print Success!
```

I agree that it would be convenient, though I think that this would cause less 
breakage:

```
if(x in 0..50) {}
```

-- 
Matt Soucy
http://msoucy.me/