Re: Slides share: DMesos - Not only a re-implementation of Mesos

2017-07-13 Thread Dsby via Digitalmars-d
On Monday, 10 July 2017 at 17:29:01 UTC, 鲜卑拓跋枫 wrote: Dear all, I am a D-language amateur from China, and just want to share you with a slides from me that post on MesosCon Asia 2017(Beijing):

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-13 Thread rikki cattermole via Digitalmars-d-announce
On 14/07/2017 1:41 AM, Vitor Rozsas wrote: Hmmm... But how would a criminal post be deleted or removed? Even if decentralized, govs could forbid the use of it (specially having a server of this social media), considering that it's database could contain child pornography (undeletable child

Re: char e string em linguagem D

2017-07-13 Thread dark777 via Digitalmars-d-learn
On Thursday, 13 July 2017 at 22:30:29 UTC, crimaniak wrote: On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote: Pessoal eu fiz o seguinte programa em C++. https://pastebin.com/CvVv6Spn porem tentei fazer o equivalente em D mas nao entendi muito bem... https://pastebin.com/2xw9geRR

Re: nogc string concatenation?

2017-07-13 Thread Nicholas Wilson via Digitalmars-d-learn
On Friday, 14 July 2017 at 00:40:38 UTC, FoxyBrown wrote: Anyone have an efficient implementation that is easy to use? If you are OK with just a range spanning the two or more strings, then you could use chain as is.

Re: WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 14 July 2017 at 00:33:12 UTC, FoxyBrown wrote: What I'm trying to do is fairly straightforward but I've wasted nearly 2 days on it. //added this so it would all compile import core.sys.windows.windows; import core.stdc.stdio; import core.stdc.stdlib; import std.stdio; import

Re: Why is dlang.org having so many problems lately? I constantly have issues connecting.

2017-07-13 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 14 July 2017 at 00:26:14 UTC, Steven Schveighoffer wrote: On 7/13/17 8:15 PM, FoxyBrown wrote: ? Pretty much at least several times a day I cannot connect. Either stalls, forum is down, etc. I have noticed that the forum is not as speedy as it used to be. Sometimes I have to

nogc string concatenation?

2017-07-13 Thread FoxyBrown via Digitalmars-d-learn
Anyone have an efficient implementation that is easy to use?

Re: WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread FoxyBrown via Digitalmars-d-learn
On Thursday, 13 July 2017 at 23:30:39 UTC, Moritz Maxeiner wrote: On Thursday, 13 July 2017 at 22:53:45 UTC, FoxyBrown wrote: On Thursday, 13 July 2017 at 20:35:19 UTC, Moritz Maxeiner wrote: On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote: The following code is pretty screwed up,

Re: Why is dlang.org having so many problems lately? I constantly have issues connecting.

2017-07-13 Thread Steven Schveighoffer via Digitalmars-d
On 7/13/17 8:15 PM, FoxyBrown wrote: ? Pretty much at least several times a day I cannot connect. Either stalls, forum is down, etc. I have noticed that the forum is not as speedy as it used to be. Sometimes I have to reload several times to get a message to show up. -Steve

Re: proposed @noreturn attribute

2017-07-13 Thread Andrei Alexandrescu via Digitalmars-d
On 7/13/17 2:37 PM, Timon Gehr wrote: On Thursday, 13 July 2017 at 17:25:18 UTC, Timon Gehr wrote: Anyway, my assertion that Bottom cannot be a subtype of all other types was actually incorrect: the compiler does not need to generate code for implicit conversion from Bottom to some other type,

Why is dlang.org having so many problems lately? I constantly have issues connecting.

2017-07-13 Thread FoxyBrown via Digitalmars-d
? Pretty much at least several times a day I cannot connect. Either stalls, forum is down, etc.

Re: WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 22:53:45 UTC, FoxyBrown wrote: On Thursday, 13 July 2017 at 20:35:19 UTC, Moritz Maxeiner wrote: On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote: The following code is pretty screwed up, even though it doesn't look like it. I have a buf, a simple malloc

Re: WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread FoxyBrown via Digitalmars-d-learn
On Thursday, 13 July 2017 at 20:35:19 UTC, Moritz Maxeiner wrote: On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote: The following code is pretty screwed up, even though it doesn't look like it. I have a buf, a simple malloc which hold the results of a win32 call. I am then trying to

Re: proposed @noreturn attribute

2017-07-13 Thread Lurker via Digitalmars-d
On Saturday, 8 July 2017 at 20:27:11 UTC, H. S. Teoh wrote: Also, a @noreturn attribute would allow overriding a non-void class method with a @noreturn one (e.g. the derived class is a sentinel object that forces an exception / termination upon calling that method), whereas you can't do that

Re: char e string em linguagem D

2017-07-13 Thread Basile B. via Digitalmars-d-learn
On Thursday, 13 July 2017 at 22:30:29 UTC, crimaniak wrote: On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote: char[] stalman() { return cast(char[])` ((__-^^-,-^^-__)) *---***---* *--|o o|--*

Re: Compilation times and idiomatic D code

2017-07-13 Thread H. S. Teoh via Digitalmars-d
On Thu, Jul 13, 2017 at 04:16:50PM -0400, Steven Schveighoffer via Digitalmars-d wrote: [...] > http://www.schveiguy.com/blog/2016/05/have-your-voldemort-types-and-keep-your-disk-space-too/ > > I was surprised as well at the reduction. I only noticed the problem > because when I was debugging my

Re: char e string em linguagem D

2017-07-13 Thread crimaniak via Digitalmars-d-learn
On Thursday, 13 July 2017 at 21:49:40 UTC, dark777 wrote: Pessoal eu fiz o seguinte programa em C++. https://pastebin.com/CvVv6Spn porem tentei fazer o equivalente em D mas nao entendi muito bem... https://pastebin.com/2xw9geRR alguem poderia me ajudar? Se acepta utilizar intervalos en

[Issue 17624] typo in Fields documentation section of https://dlang.org/library/object/exception.html

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17624 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/180644a61436a8f3e64f1f8d8ea8ec1d2500c607 Fix Issue 17624 - typo in Fields documentation

[Issue 17641] TypeInfo for two identical delegates (or functions) are not equal to each other

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17641 --- Comment #4 from andron...@gmail.com --- Sorry, I misunderstood you. --

char e string em linguagem D

2017-07-13 Thread dark777 via Digitalmars-d-learn
Pessoal eu fiz o seguinte programa em C++. https://pastebin.com/CvVv6Spn porem tentei fazer o equivalente em D mas nao entendi muito bem... https://pastebin.com/2xw9geRR alguem poderia me ajudar?

Re: WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread ag0aep6g via Digitalmars-d-learn
On 07/13/2017 08:22 PM, FoxyBrown wrote: res = EnumServicesStatusExW(schSCManager, SC_ENUM_TYPE.SC_ENUM_PROCESS_INFO, servicesType, SERVICE_STATE_ALL, cast(ubyte*)buf, 5, , , , cast(const(char)*)null); The cast to `char*` here looks odd. The 'W' suffix in the function name

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-13 Thread Mark Fisher via Digitalmars-d-announce
On Wednesday, 12 July 2017 at 04:40:16 UTC, Vitor Rozsas wrote: So... basically, it's a Bitcoin, but instead of transactions, the blockchain should store posts and profiles. :) And it should have some additional features (the typical things of social media - profile picture, some optional

Re: Read from terminal when enter is pressed, but do other stuff in the mean time...

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote: How do I read in input from the terminal without sitting there waiting for it? I've got code I want to run while there's no input, and then code I want to act on input when it comes in. How do I do both these things? As Stefan

Re: version=D_16

2017-07-13 Thread Mike via Digitalmars-d
On Monday, 10 July 2017 at 21:30:44 UTC, Walter Bright wrote: You can't use RTTI or Exceptions, for example. Those generate bloat even if they are not used - a compiler switch is typical to disable them. It's not true that C++ is "pay only for what you use". If the C++ usage is "C with

Re: WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 18:22:34 UTC, FoxyBrown wrote: The following code is pretty screwed up, even though it doesn't look like it. I have a buf, a simple malloc which hold the results of a win32 call. I am then trying to copy over the data in buf to a D struct. But when copying the

Re: Compilation times and idiomatic D code

2017-07-13 Thread Steven Schveighoffer via Digitalmars-d
On 7/13/17 3:23 PM, H. S. Teoh via Digitalmars-d wrote: Today, I decided to sit down and refactor my code. I've heard tell that Voldemort types tend to cause an explosion in symbol size, and today I thought it'd be interesting to see just how big of a difference this actually makes. I could

[Issue 17630] DMD treats imports as public imports when selectively imported

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17630 Jack Stouffer changed: What|Removed |Added Keywords||accepts-invalid --

Re: DWT is official ?

2017-07-13 Thread Jacob Carlborg via Digitalmars-d-dwt
On 2017-07-12 14:36, Flaze07 wrote: I see... so...is it official ?? Not sure what you mean with "official". The forum or the library? -- /Jacob Carlborg

Re: Slides share: DMesos - Not only a re-implementation of Mesos

2017-07-13 Thread Iain Buclaw via Digitalmars-d
On Monday, 10 July 2017 at 17:29:01 UTC, 鲜卑拓跋枫 wrote: Dear all, I am a D-language amateur from China, and just want to share you with a slides from me that post on MesosCon Asia 2017(Beijing):

Re: Silly struct behaviour

2017-07-13 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jul 13, 2017 at 06:48:27PM +, JN via Digitalmars-d-learn wrote: > On Thursday, 13 July 2017 at 18:09:46 UTC, H. S. Teoh wrote: > > > > It's not quite so simple. Consider for example: > > > > struct Foo { int bar; } > > struct Oof { int bar; } > > > > void process(Foo

Re: Compilation times and idiomatic D code

2017-07-13 Thread H. S. Teoh via Digitalmars-d
On Wed, Jul 05, 2017 at 09:45:55PM -0600, Jonathan M Davis via Digitalmars-d wrote: [...] > In this case, I think that it's more that Voldemort types are biting > us than that ranges are biting us (though the Voldemort types are > typically ranges, so in practice, using ranges ends up biting

Re: Silly struct behaviour

2017-07-13 Thread JN via Digitalmars-d-learn
On Thursday, 13 July 2017 at 18:09:46 UTC, H. S. Teoh wrote: It's not quite so simple. Consider for example: struct Foo { int bar; } struct Oof { int bar; } void process(Foo foo) { } void process(Oof oof) { formatDisk(); } void main() {

Re: Silly struct behaviour

2017-07-13 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 13 July 2017 at 18:45:45 UTC, JN wrote: I know that's a wrong syntax, I was just showing an example. Yes, here it will work, but if you want to initialize only some fields (poor man's keyword arguments), you can't use the default constructor. easily fixable by using

Re: proposed @noreturn attribute

2017-07-13 Thread Timon Gehr via Digitalmars-d
On Thursday, 13 July 2017 at 17:25:18 UTC, Timon Gehr wrote: Anyway, my assertion that Bottom cannot be a subtype of all other types was actually incorrect: the compiler does not need to generate code for implicit conversion from Bottom to some other type, so it can be treated as a subtype.

WTF is going on! Corrupt value that is never assigned

2017-07-13 Thread FoxyBrown via Digitalmars-d-learn
The following code is pretty screwed up, even though it doesn't look like it. I have a buf, a simple malloc which hold the results of a win32 call. I am then trying to copy over the data in buf to a D struct. But when copying the strings, the buf location changes, screwing up the copying

Re: Silly struct behaviour

2017-07-13 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jul 13, 2017 at 06:07:31PM +, JN via Digitalmars-d-learn wrote: > Consider: > > struct Foo > { > int bar; > } > > void processFoo(Foo foo) > { > } > > void main() > { > Foo f = {bar: 5}; > processFoo(f);// ok > processFoo(Foo(5)); //

Silly struct behaviour

2017-07-13 Thread JN via Digitalmars-d-learn
Consider: struct Foo { int bar; } void processFoo(Foo foo) { } void main() { Foo f = {bar: 5}; processFoo(f);// ok processFoo(Foo(5)); // ok processFoo({bar: 5}); // fail processFoo(Foo({bar: 5}));// fail }

Re: [OT] .net is getting slices

2017-07-13 Thread Kagamin via Digitalmars-d
On Thursday, 13 July 2017 at 17:08:38 UTC, jmh530 wrote: Huh? Take a look at the "Using Span" section. It's indeed stack-only for safety reasons. On heap can be stored a span promise, that can be resolved to a span on stack.

[Issue 17644] [Downloads] Bad link to changelog for DMD beta version.

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17644 --- Comment #6 from Gerald Jansen --- (In reply to greenify from comment #5) > > How can I clone your branch/changes? > https://wiki.dlang.org/Guidelines_for_maintainers Thanks for the tips! --

Re: proposed @noreturn attribute

2017-07-13 Thread Timon Gehr via Digitalmars-d
On Wednesday, 12 July 2017 at 14:23:15 UTC, Andrei Alexandrescu wrote: On 07/12/2017 05:32 AM, Timon Gehr wrote: On 09.07.2017 23:45, Meta wrote: ... Another case that we should probably just statically disallow: ... > This obviously doesn't make any sense anyway ... > I don't see a reason for

[Issue 17644] [Downloads] Bad link to changelog for DMD beta version.

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17644 --- Comment #5 from greenify --- > How can I clone your branch/changes? Btw the guidelines for maintainers might answer a few of your questions and it contains a handy git shortcut if you happen to clone a PR more than once:

Re: Read from terminal when enter is pressed, but do other stuff in the mean time...

2017-07-13 Thread Ali Çehreli via Digitalmars-d-learn
On 07/13/2017 08:52 AM, Dustmight wrote: How do I read in input from the terminal without sitting there waiting for it? I've got code I want to run while there's no input, and then code I want to act on input when it comes in. How do I do both these things? If you're fine with buffered input,

[Issue 17644] [Downloads] Bad link to changelog for DMD beta version.

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17644 --- Comment #4 from greenify --- > How can I see the effect of these changes on a copy of the site? The simplest way is clicking on DAutoTest at the PR status page. DAutoTest builds the entire website, shows the diff between

Re: [OT] .net is getting slices

2017-07-13 Thread jmh530 via Digitalmars-d
On Thursday, 13 July 2017 at 14:34:56 UTC, Stefan Koch wrote: It's a stack-only type. Wow. It totally sucks! Huh? Take a look at the "Using Span" section.

[Issue 17644] [Downloads] Bad link to changelog for DMD beta version.

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17644 --- Comment #3 from Gerald Jansen --- (In reply to Seb from comment #2) > PR: https://github.com/dlang/dlang.org/pull/1820 How can I see the effect of these changes on a copy of the site? I have cloned dlang.org and

[Issue 17648] dmd segfault on overload set introspection

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17648 uplink.co...@googlemail.com changed: What|Removed |Added CC||uplink.co...@googlemail.com

Re: version=D_16

2017-07-13 Thread Stefan Koch via Digitalmars-d
On Thursday, 13 July 2017 at 16:46:12 UTC, Luís Marques wrote: [ ... ] On D side the issue that remains is the ergonomics of having to type cast(short) more frequently. I suppose that if this proves too inconvenient we can just create a library type that avoids this issue, right? Yes. we

[Issue 17649] New: CONTRIBUTING.md instructions failed (no ../druntime dir)

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17649 Issue ID: 17649 Summary: CONTRIBUTING.md instructions failed (no ../druntime dir) Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW

[Issue 17648] New: dmd segfault on overload set introspection

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17648 Issue ID: 17648 Summary: dmd segfault on overload set introspection Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major

Re: Hiring D programmers (with cryptography and blockchain knowledge are preferred)

2017-07-13 Thread Joakim via Digitalmars-d-announce
On Thursday, 13 July 2017 at 05:18:40 UTC, wigy wrote: On Wednesday, 12 July 2017 at 20:11:06 UTC, Vitor Rozsas wrote: [...] Hi! I do not think the debate you have with yourself is decentralized vs centralized. You are thinking about moderated vs unmoderated. One is a technical structure,

Re: version=D_16

2017-07-13 Thread Luís Marques via Digitalmars-d
On Monday, 10 July 2017 at 21:30:44 UTC, Walter Bright wrote: For example, ints in C are 16 bits. In D they are 32. This means that integer operations are expensive. I just realized something interesting. The same situation happens on AVR with C. AVR is 8 bit (but often competes with 16-bit

Re: Read from terminal when enter is pressed, but do other stuff in the mean time...

2017-07-13 Thread NotSpooky via Digitalmars-d-learn
On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote: How do I read in input from the terminal without sitting there waiting for it? I've got code I want to run while there's no input, and then code I want to act on input when it comes in. How do I do both these things? Might want to

[Issue 14982] nogc inconsistency

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14982 John Colvin changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12283] Array literals of interface implementations do not resolve to interface

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12283 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --

Re: Read from terminal when enter is pressed, but do other stuff in the mean time...

2017-07-13 Thread Stefan Koch via Digitalmars-d-learn
On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote: How do I read in input from the terminal without sitting there waiting for it? I've got code I want to run while there's no input, and then code I want to act on input when it comes in. How do I do both these things? You have to ask

[Issue 17641] TypeInfo for two identical delegates (or functions) are not equal to each other

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17641 --- Comment #3 from ag0ae...@gmail.com --- (In reply to andronkin from comment #2) > Thank you, I did not know about this feature. > > > void delegate(uint) > > Yeah, that looks wrong > Why is it wrong? This is the correct delegate type definition:

[Issue 7177] $ should forward to length by default

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7177 Jack Stouffer changed: What|Removed |Added CC||j...@jackstouffer.com

[Issue 17646] dmd segfaults on missing foreach body in import

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17646 uplink.co...@googlemail.com changed: What|Removed |Added Keywords||pull --- Comment #2 from

Read from terminal when enter is pressed, but do other stuff in the mean time...

2017-07-13 Thread Dustmight via Digitalmars-d-learn
How do I read in input from the terminal without sitting there waiting for it? I've got code I want to run while there's no input, and then code I want to act on input when it comes in. How do I do both these things?

Re: Idiomatic FFT(W) Wrapper

2017-07-13 Thread John Colvin via Digitalmars-d-learn
On Thursday, 13 July 2017 at 12:49:40 UTC, Per Nordlöw wrote: Have anybody constructed an idiomatic D wrapper for FFTW? No, sorry, although I have used the library quite a bit in D. http://www.fftw.org/fftw3_doc/Tutorial.html#Tutorial I'm specifically concerned about -

[Issue 16564] KRRegion.empty sometimes returns Ternary.no

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16564 --- Comment #7 from Temtaime --- Oh, sorry, my mistake import std.stdio, std.range, std.random, std.typecons, std.algorithm, std.experimental.allocator.building_blocks,

Re: [OT] .net is getting slices

2017-07-13 Thread Stefan Koch via Digitalmars-d
On Thursday, 13 July 2017 at 14:30:42 UTC, Kagamin wrote: http://adamsitnik.com/Span/ It's a stack-only type. Wow. It totally sucks!

Re: DIP 1010--Static foreach--Formal Review

2017-07-13 Thread Mike Parker via Digitalmars-d
On Monday, 10 July 2017 at 08:53:42 UTC, Mike Parker wrote: As promised, since there has been zero feedback on DIP 1010, "Static foreach", in either the Draft or Preliminary review rounds, I'm going to skip the normal two-week feedback cycle on the Formal review. If there are no major

[OT] .net is getting slices

2017-07-13 Thread Kagamin via Digitalmars-d
http://adamsitnik.com/Span/

[Issue 17641] TypeInfo for two identical delegates (or functions) are not equal to each other

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17641 andron...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 12736] @nogc std.algorithm.all

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12736 Jon Degenhardt changed: What|Removed |Added Status|RESOLVED|REOPENED

[Issue 11688] dlang packages should not depend on i686

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11688 Gide Nwawudu changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 17647] Fedora/CentOS RPM x86_64 depends on i686 libraries

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17647 Gide Nwawudu changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 17647] New: Fedora/CentOS RPM x86_64 depends on i686 libraries

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17647 Issue ID: 17647 Summary: Fedora/CentOS RPM x86_64 depends on i686 libraries Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

[Issue 17646] dmd segfaults on missing foreach body in import

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17646 uplink.co...@googlemail.com changed: What|Removed |Added CC||uplink.co...@googlemail.com

[Issue 17646] New: dmd segfaults on missing foreach body in import

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17646 Issue ID: 17646 Summary: dmd segfaults on missing foreach body in import Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major

Re: how old is dfl ??

2017-07-13 Thread JamesD via Digitalmars-d
On Thursday, 13 July 2017 at 13:08:37 UTC, Flaze07 wrote: hi the reason I ask how old dfl is because it is an abandoned project...but I want to use it... I am just afraid of some...incompability Your choice for a gui depends on your requirements and how you intend to use it. Here is a list

Re: DWT is official ?

2017-07-13 Thread JamesD via Digitalmars-d-dwt
On Wednesday, 12 July 2017 at 12:36:34 UTC, Flaze07 wrote: On Wednesday, 12 July 2017 at 11:18:21 UTC, Jacob Carlborg wrote: On 2017-07-12 12:10, Flaze07 wrote: hi...so is this group forum about the SWT D bindings ? (I am just surprised that it is...in the ecosystem if it is what I think it

how old is dfl ??

2017-07-13 Thread Flaze07 via Digitalmars-d
hi the reason I ask how old dfl is because it is an abandoned project...but I want to use it... I am just afraid of some...incompability

[Issue 17634] variadic overload of std.algorithm.searching.countUntil should return which needle was found

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17634 RazvanN changed: What|Removed |Added Assignee|razvan.nitu1...@gmail.com |nob...@puremagic.com

newCTFE Status July 2017

2017-07-13 Thread Stefan Koch via Digitalmars-d
Hi Guys, It has been suggested that I open a new thread every month. I am happy to do that as it will make documenting the progress in newCTFE easier. Let me start with a funny error I just fixed :) The following code : static assert(() { return ulong(ushort.max | ulong(ushort.max) << 32);

Idiomatic FFT(W) Wrapper

2017-07-13 Thread Per Nordlöw via Digitalmars-d-learn
Have anybody constructed an idiomatic D wrapper for FFTW? http://www.fftw.org/fftw3_doc/Tutorial.html#Tutorial I'm specifically concerned about - `RefCounted`-wrapping of the C structures `fftw_complex` and `fftw_plan` - range semantics, lazy evaluation and caching of result in

Re: Gui in D: I miss this project

2017-07-13 Thread Eljay via Digitalmars-d
On Wednesday, 18 January 2017 at 09:24:09 UTC, aberba wrote: What about Photoshop? Is it native? No. No, by-and-large Photoshop does not use native controls. However, I would not hold up Photoshop as validation for not using native controls. Games have wide latitude for ignoring their

[Issue 17645] `pure` is transitively applied to all delegates inside a pure function

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17645 Steven Schveighoffer changed: What|Removed |Added CC|

Re: Why do array literals default to object.Object[]?

2017-07-13 Thread Steven Schveighoffer via Digitalmars-d-learn
On 7/12/17 1:24 AM, Brandon Buck wrote: On Wednesday, 12 July 2017 at 02:06:41 UTC, Steven Schveighoffer wrote: I'm sure there's a bug filed somewhere on this... Is this bug worthy? I can search for one and comment and/or create one if I can't find one. Found it. It was mistakenly closed:

[Issue 12283] Array literals of interface implementations do not resolve to interface

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12283 Steven Schveighoffer changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: Beta 2.075.0-b4

2017-07-13 Thread Seb via Digitalmars-d-announce
On Thursday, 13 July 2017 at 11:52:13 UTC, Martin Nowak wrote: On Thursday, 13 July 2017 at 07:22:00 UTC, Eugene Wissner wrote: The ChangeLog link is: http://dlang.org/changelog/2.075.0_pre.html Works for now, but it shouldn't be under that URL. Will check what broke with dlang.org's

[Issue 17645] `pure` is transitively applied to all delegates inside a pure function

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17645 Tomer Filiba (weka) changed: What|Removed |Added Keywords||industry --

[Issue 17645] New: `pure` is transitively applied to all delegates inside a pure function

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17645 Issue ID: 17645 Summary: `pure` is transitively applied to all delegates inside a pure function Product: D Version: D2 Hardware: All OS: All Status:

[Issue 17645] `pure` is transitively applied to all delegates inside a pure function

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17645 Tomer Filiba (weka) changed: What|Removed |Added CC||to...@weka.io --

Re: CTFE Status 2

2017-07-13 Thread Steven Schveighoffer via Digitalmars-d
On 7/12/17 9:20 PM, H. S. Teoh via Digitalmars-d wrote: On Thu, Jul 13, 2017 at 01:23:53AM +, Stefan Koch via Digitalmars-d wrote: On Wednesday, 12 July 2017 at 21:05:28 UTC, watcher wrote: stop advertising yourself and polluting this thread. seek help - no down-payments in Germany!! I

[Issue 17634] variadic overload of std.algorithm.searching.countUntil should return which needle was found

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

Re: Error on negating unsigned types

2017-07-13 Thread Steven Schveighoffer via Digitalmars-d
On 7/12/17 5:24 PM, Johan Engelen wrote: On Wednesday, 12 July 2017 at 20:12:03 UTC, Steven Schveighoffer wrote: ... Which means this may cause a bunch of nuisance errors. It's a trade-off between nuisance in some cases (the Phobos ones can be solved with val = abs(val), or with static if),

Re: Bad file descriptor in File destructor

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 10:56:20 UTC, unDEFER wrote: Seems I have found. I must do: try{ File file; try { file = File(path); } catch (Exception exp) { return; } //Some actions with file } catch (ErrnoException) { return; } Well, yes, you

Re: Bad file descriptor in File destructor

2017-07-13 Thread unDEFER via Digitalmars-d-learn
Thank you. I will write if will find the reason of description corruption.

Re: 2D game physics, macOS

2017-07-13 Thread Joel via Digitalmars-d-learn
On Thursday, 13 July 2017 at 09:53:05 UTC, Jacob Carlborg wrote: On 2017-07-13 02:34, Joel wrote: It doesn't look like there's any thing I can use. I've come across: dbox, dchip, and blaze. Blaze is dsource. dbox is alpha and hasn't been updated for 3 years. dchip [1] hasn't been updated

Re: Bad file descriptor in File destructor

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 11:15:56 UTC, Moritz Maxeiner wrote: --- ubyte[File.sizeof] _file; ref File file() { return *(cast(File*) &_file[0]); } [create File instance and assign to file] scope (exit) destroy(file); --- Forgot to add the try catch: --- ubyte[File.sizeof] _file; ref File

Re: Bad file descriptor in File destructor

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 10:28:30 UTC, unDEFER wrote: On Thursday, 13 July 2017 at 08:53:24 UTC, Moritz Maxeiner wrote: Where does that `File` come from? If it's std.stdio.File, that one is a struct with internal reference counting, so it shouldn't crash in the above. Could you provide a

Re: Bad file descriptor in File destructor

2017-07-13 Thread unDEFER via Digitalmars-d-learn
Seems I have found. I must do: try{ File file; try { file = File(path); } catch (Exception exp) { return; } //Some actions with file } catch (ErrnoException) { return; }

[Issue 6718] "nWayUnion" => "nWayMerge", plus true nWayUnion

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

Re: Bad file descriptor in File destructor

2017-07-13 Thread unDEFER via Digitalmars-d-learn
On Thursday, 13 July 2017 at 08:53:24 UTC, Moritz Maxeiner wrote: Where does that `File` come from? If it's std.stdio.File, that one is a struct with internal reference counting, so it shouldn't crash in the above. Could you provide a minimal working (in this case crashing) example? Yes File

Re: 2D game physics, macOS

2017-07-13 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-07-13 02:34, Joel wrote: It doesn't look like there's any thing I can use. I've come across: dbox, dchip, and blaze. Blaze is dsource. dbox is alpha and hasn't been updated for 3 years. dchip [1] hasn't been updated for 2 years and doesn't compile (that's with out using any thing,

[Issue 17624] typo in Fields documentation section of https://dlang.org/library/object/exception.html

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17624 Seb changed: What|Removed |Added Keywords||pull CC|

[Issue 17644] [Downloads] Bad link to changelog for DMD beta version.

2017-07-13 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17644 Seb changed: What|Removed |Added Keywords||pull CC|

Re: Bad file descriptor in File destructor

2017-07-13 Thread Moritz Maxeiner via Digitalmars-d-learn
On Thursday, 13 July 2017 at 08:38:52 UTC, unDEFER wrote: Hello! I have the code like this: File file; try { file = File(path); } catch (Exception exp) { return; } ... try { } Where does that `File` come from? If it's std.stdio.File, that one

  1   2   >