Re: [OT] mobile rising

2017-11-12 Thread codephantom via Digitalmars-d
On Sunday, 12 November 2017 at 22:39:36 UTC, Walter Bright wrote: On 11/10/2017 2:54 PM, codephantom wrote: MSFT fanboy...at it again... Knock it off, everyone. Oh gee..Sorry daddy. ...maybe you have jumped in a few 100 threads ago, and addressed your response to the actual perpertrator

[Issue 16398] experimental allocators, add aligned reallocation for Posix

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16398 Basile B. changed: What|Removed |Added Keywords||pull --- Comment #2 from

[Issue 12064] std.typecons.wrap doesn't handle NVI

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12064 Basile B. changed: What|Removed |Added Keywords||pull CC|

Re: How do I use Socket.select?

2017-11-12 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 12 November 2017 at 21:45:56 UTC, Anonymouse wrote: But a "status change" for a reading Socket is "stuff can now connect", for a writing one "connection established", and not sure about the error ones. It doesn't seem to be "there's data waiting to be read" which I'd hoped for,

core file

2017-11-12 Thread Tony via Digitalmars-d-learn
I am getting the message from my program execution: "Segmentation fault (core dumped)" But I don't see a core file in the current directory or in my home directory. Is there one somewhere? Would I be able to do anything meaningful with it if it exists?

Re: New QtE5 version and the test it - mini ide ide5

2017-11-12 Thread lobo via Digitalmars-d-announce
On Sunday, 12 November 2017 at 08:04:37 UTC, MGW wrote: QtE5 - gained further development. The new mechanism of operation with memory is realized that allowed will get rid of crash of applications in case of completion. The summary code amount increases all the time. New classes from Qt are

Re: [OT] mobile rising

2017-11-12 Thread Walter Bright via Digitalmars-d
On 11/8/2017 1:36 PM, Joakim wrote: You don't want to own up to the fact that Please refrain from berating others here.

Re: [OT] mobile rising

2017-11-12 Thread Jerry via Digitalmars-d
On Sunday, 12 November 2017 at 00:24:31 UTC, codephantom wrote: On Saturday, 11 November 2017 at 20:35:40 UTC, Jerry wrote: Taking away the start button wasn't that big of a deal. Thanks...another qoute to add to: 'The famous quotes of Jerry the MSFT fanboy'. It's easy to take a single

Re: Project Elvis

2017-11-12 Thread codephantom via Digitalmars-d
On Sunday, 12 November 2017 at 16:47:02 UTC, bauss wrote: I told you once and I'll tell you twice. I'm definitely not a MSFT fan boy. The only thing I have in my development environment that's related to MS is their linker from Visual Studio, but I don't have anything else installed from

Re: [OT] mobile rising

2017-11-12 Thread codephantom via Digitalmars-d
On Monday, 13 November 2017 at 00:47:46 UTC, codephantom wrote: On Monday, 13 November 2017 at 00:41:32 UTC, Jerry wrote: harassing people isn't defending your argument. Yeah...it's not nice...being harassed..is it. You have to be harassed to know what if feels like. That was my objective.

Re: opCast'ing strings

2017-11-12 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 13 November 2017 at 01:03:17 UTC, helxi wrote: In this program, casting using to does not work as intended (returning 23/11) on the struct. However, calling opCast directly seems to do the job. Why is that? to!string calls a function called `string toString() {}` on the struct,

Re: [OT] mobile rising

2017-11-12 Thread Walter Bright via Digitalmars-d
On 11/10/2017 3:28 AM, Joakim wrote: Your logic is extremely confused. [...] You seem to be confused Please stop berating others here.

Re: core file

2017-11-12 Thread Tony via Digitalmars-d-learn
On Monday, 13 November 2017 at 05:37:12 UTC, codephantom wrote: On Monday, 13 November 2017 at 05:01:18 UTC, Tony wrote: I am getting the message from my program execution: "Segmentation fault (core dumped)" But I don't see a core file in the current directory or in my home directory. Is

Re: [OT] mobile rising

2017-11-12 Thread Jerry via Digitalmars-d
On Monday, 13 November 2017 at 00:22:46 UTC, codephantom wrote: It's so like people these days, and even on these forums, to attack the ones sticking up for themselves, rather than stopping them from being attacked in the first place, just for having a different opinion - or god

Re: [OT] mobile rising

2017-11-12 Thread Jerry via Digitalmars-d
On Monday, 13 November 2017 at 00:40:29 UTC, codephantom wrote: On Monday, 13 November 2017 at 00:36:17 UTC, Jerry wrote: It's easy to take a single sentence out of context maybe i should just keep everything as one long protruding sentence so that you are forced to quote everything so that

Re: [OT] mobile rising

2017-11-12 Thread codephantom via Digitalmars-d
On Monday, 13 November 2017 at 00:36:17 UTC, Jerry wrote: It's easy to take a single sentence out of context maybe i should just keep everything as one long protruding sentence so that you are forced to quote everything so that you you won't misinterpret what it means by what I don't know

Re: String import an entire directory

2017-11-12 Thread crimaniak via Digitalmars-d
On Saturday, 11 November 2017 at 14:11:50 UTC, Neia Neutuladh wrote: I can make a prebuild script to generate code for this, but I'm wondering: do other people find themselves needing this periodically? If so, I can write a DIP for it, or at least publish a codegen tool that other people can

opCast'ing strings

2017-11-12 Thread helxi via Digitalmars-d-learn
struct Fraction { private: int numerator = 1, denominator = 1; public: string opCast(T : string)() const { import std.conv : to; return numerator.to!string() ~ "/" ~ denominator.to!string(); } } void main() { import

Re: The latest Terrarium TV 1.8.1 has been updated.

2017-11-12 Thread solidstate1991 via Digitalmars-d-announce
On Wednesday, 8 November 2017 at 09:40:01 UTC, Theresa Henson wrote: The update is compatible with the latest Android OS as well as all others over Android 4.0 Was this (at least partly) developed using D? Or you just using the forum to promote this product?

Re: core file

2017-11-12 Thread Ali Çehreli via Digitalmars-d-learn
On 11/12/2017 10:25 PM, Tony wrote: >>> "Segmentation fault (core dumped)" I've been assuming that if it says "dumped", the core is dumped. > I am on Ubuntu 16.04. Thanks, I didn't know that "producing a core file" > was configurable, and it appears that it isn't. It is. If you search for

[Issue 17976] core.exception.AssertError@ddmd/dsymbolsem.d(1624)

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17976 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 17976] core.exception.AssertError@ddmd/dsymbolsem.d(1624)

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17976 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bfa0da8d413ed283868fcd103ee398e41a29deef Fix Issue 17976 -

Re: Project Elvis

2017-11-12 Thread codephantom via Digitalmars-d
On Sunday, 12 November 2017 at 16:47:02 UTC, bauss wrote: I told you once and I'll tell you twice. I'm definitely not a MSFT fan boy. Well, you were pretty quick to jump into the middle of a conversation, just to have a long..drawn outgo at me, because I had some critical comments to

Re: [OT] mobile rising

2017-11-12 Thread codephantom via Digitalmars-d
On Monday, 13 November 2017 at 00:41:32 UTC, Jerry wrote: You weren't attacked and you aren't a victim ... Another quote to add..thanks. Keep em' coming... I could make money of this...

Re: [OT] mobile rising

2017-11-12 Thread codephantom via Digitalmars-d
On Monday, 13 November 2017 at 00:41:32 UTC, Jerry wrote: harassing people isn't defending your argument. Yeah...it's not nice...being harassed..is it. You have to be harassed to know what if feels like. That was my objective. Not to harass you, but to let you know how I felt when you

Re: LDC 1.6.0-beta1

2017-11-12 Thread Brian via Digitalmars-d-announce
On Sunday, 12 November 2017 at 15:57:19 UTC, kinke wrote: Hi everyone, on behalf of the LDC team, I'm glad to announce the first beta for LDC 1.6. The highlights of this version in a nutshell: * Based on D 2.076.1. * Experimental support for dynamic codegen at runtime ('manual JIT'). *

Re: How do I create a fileWatcher with an onFileChange event using spawn?

2017-11-12 Thread shuji via Digitalmars-d-learn
On Friday, 25 August 2017 at 21:25:37 UTC, Enjoys Math wrote: Something like this: module file_watcher; import std.concurrency; import std.file; import std.signals; import std.datetime; void fileWatcher(Tid tid, string filename, int loopSleep) { auto modified0 =

Re: core file

2017-11-12 Thread codephantom via Digitalmars-d-learn
On Monday, 13 November 2017 at 05:01:18 UTC, Tony wrote: I am getting the message from my program execution: "Segmentation fault (core dumped)" But I don't see a core file in the current directory or in my home directory. Is there one somewhere? Would I be able to do anything meaningful with

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote: if (a & (flag1 | flag2)) to if ((a & (flag1 | flag2)) != 0) When the first is quite obvious. Just change the typing of the if-conditional to: if (boolean|integral) {…}

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Temtaime via Digitalmars-d
On Sunday, 12 November 2017 at 16:00:28 UTC, Ola Fosheim Grøstad wrote: On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote: if (a & (flag1 | flag2)) to if ((a & (flag1 | flag2)) != 0) When the first is quite obvious. Just change the typing of the if-conditional to: if

Re: [OT] mobile rising

2017-11-12 Thread Dave Jones via Digitalmars-d
On Sunday, 12 November 2017 at 02:07:03 UTC, codephantom wrote: On Saturday, 11 November 2017 at 20:35:40 UTC, Jerry wrote: When I joined the forum a little while back, I dared to suggest that D should be able to compile a 64bit binary on Windows, without having to relying on gigabytes of

Re: [OT] mobile rising

2017-11-12 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 12 November 2017 at 10:18:09 UTC, Tony wrote: But those humans at the top, working for public companies, are monitored by a board and stockholders who place "making money" as the main, and normally only, measure of their job performance. Sure, when you get a leader that is weak on

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Ola Fosheim Grøstad via Digitalmars-d
On Sunday, 12 November 2017 at 16:04:59 UTC, Temtaime wrote: There's no force change. if explicitly converts cond to bool. Yes, but that is a flaw IMO. E.g. NaN will convert to true.

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Michael V. Franklin via Digitalmars-d
On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote: However, I’d hate to rewrite things like: if (a & (flag1 | flag2)) to if ((a & (flag1 | flag2)) != 0) When the first is quite obvious. I don't think the proposal to deprecate integer literal conversions to `bool` would

Automatic insertion of D-style multiline-comments in Emacs

2017-11-12 Thread Nordlöw via Digitalmars-d-learn
Have anybody added logic to Emacs' `comment-dwim` that automagically inserts a (Ddoc-style) multi-line comment like /** ... */ void foo { } if the cursor is currently in front of a (function) definition (or declaration)? I realize that the challenge here is context detection; perhaps

Re: Automatic insertion of D-style multiline-comments in Emacs

2017-11-12 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:52:48 UTC, Nordlöw wrote: Have anybody added logic to Emacs' `comment-dwim` that automagically inserts a (Ddoc-style) multi-line comment like Posted also here: https://stackoverflow.com/questions/47249052/automatic-insertion-of-multiline-declaration-comments

Re: Automatic insertion of D-style multiline-comments in Emacs

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:52:48 UTC, Nordlöw wrote: Have anybody added logic to Emacs' `comment-dwim` that automagically inserts a (Ddoc-style) multi-line comment like /** ... */ void foo { } if the cursor is currently in front of a (function) definition (or declaration)? I

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Michael V. Franklin via Digitalmars-d
On Sunday, 12 November 2017 at 13:49:51 UTC, Michael V. Franklin wrote: I don't think the proposal to deprecate integer literal conversions to `bool` would affect that as there doesn't appear to be an integer literal in the code. Nevermind. I see what you mean now. Mike

Re: Project Elvis

2017-11-12 Thread bauss via Digitalmars-d
On Sunday, 12 November 2017 at 04:40:21 UTC, codephantom wrote: On Sunday, 12 November 2017 at 01:00:46 UTC, bauss wrote: I'm tired so I will end my post here. And I'm going to end all my posts here, cause I'm sick of arguing with MSFT fanboys, who want to restrain D's development by tying

[Issue 17979] Improve documentation for lazy parameters

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17979 Alexey Kulentsov changed: What|Removed |Added Hardware|x86_64 |All

[Issue 17979] New: Improve documentation for lazy parameters

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17979 Issue ID: 17979 Summary: Improve documentation for lazy parameters Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Andrei Alexandrescu via Digitalmars-d
On 11/12/2017 08:54 AM, Michael V. Franklin wrote: On Sunday, 12 November 2017 at 13:49:51 UTC, Michael V. Franklin wrote: I don't think the proposal to deprecate integer literal conversions to `bool` would affect that as there doesn't appear to be an integer literal in the code. Nevermind.

Re: New QtE5 version and the test it - mini ide ide5

2017-11-12 Thread MGW via Digitalmars-d-announce
On Sunday, 12 November 2017 at 10:26:33 UTC, user1234 wrote: Hello, i was a bored yesterday and between two movies tried to install it (it was before the announce) and i have to say that it's not clear at all and delete it. The main reason is that i expected the top level dub JSON to produce

Re: [OT] mobile rising

2017-11-12 Thread Tony via Digitalmars-d
On Friday, 10 November 2017 at 14:28:10 UTC, Ola Fosheim Grøstad wrote: On Friday, 10 November 2017 at 12:55:24 UTC, Tony wrote: Very few companies are not "all about making money". That is why Americans were laid off by the millions and replaced by workers in countries with much cheaper labor

Re: Project Elvis

2017-11-12 Thread Satoshi via Digitalmars-d
On Sunday, 12 November 2017 at 08:33:34 UTC, Satoshi wrote: I'm going to start focusing my attention on rewriting (some) of FreeBSD userland, using D ..and see what happens. (btw. such programs can easily be migrated to Linux/OSX too...or the new 'System D' ..when it arrives ;-) You should

Re: Project Elvis

2017-11-12 Thread Satoshi via Digitalmars-d
It's for you! https://i.imgur.com/NNgrSyP.png

Re: Project Elvis

2017-11-12 Thread codephantom via Digitalmars-d
On Sunday, 12 November 2017 at 08:59:05 UTC, Satoshi wrote: It's for you! https://i.imgur.com/NNgrSyP.png If you're actually taking bets on that...then put me down for $10_000.00 on the MSFT fanbois that is ;-) Nice stuff with Trinix. I'll cross you off my list of fanboys...for now.

Re: Inline assembly question

2017-11-12 Thread Eugene Wissner via Digitalmars-d-learn
On Sunday, 12 November 2017 at 11:01:39 UTC, Dibyendu Majumdar wrote: Hi, I have recently started work on building a VM for Lua (actually a derivative of Lua) in X86-64 assembly. I am using the dynasm tool that is part of LuaJIT. I was wondering whether I could also write this in D's inline

Re: Inline assembly question

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 11:01:39 UTC, Dibyendu Majumdar wrote: Hi, [...] The assembly code uses static allocation of registers, but because of the differences in how registers are used in Win64 versus Unix X64 - different registers are assigned depending on the architecture. dynasm

Re: Inline assembly question

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:17:51 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 11:55:23 UTC, Eugene Wissner wrote: [...] Thank you - I probably could use something like this. It is uglier than the simpler approach in dynasm of course. How about when I need to combine

Re: Project Elvis

2017-11-12 Thread Satoshi via Digitalmars-d
On Sunday, 12 November 2017 at 03:25:47 UTC, codephantom wrote: But everyone wants a more modular, more refined, more modern, more secure operating system ...and a more secure systems programming language. How rewriting Linux from scratch will enhance security of the OS? By introducing

Re: Reorganization and list of D libraries (300+)

2017-11-12 Thread Andre Pany via Digitalmars-d-announce
On Monday, 6 November 2017 at 16:12:14 UTC, Martin Tschierschke wrote: On Saturday, 4 November 2017 at 00:16:35 UTC, Ali Çehreli wrote: On 11/03/2017 05:12 PM, Fra Mecca wrote: https://github.com/FraMecca/D_Libraries_Registry This effort should be combined with the current work being done

Platform to make any programming language interactive & explorative (http://jupyter.org)

2017-11-12 Thread Robert M. Münch via Digitalmars-d
Hi, that might be some interesting project to add D to, for interactive exploration. http://jupyter.org Project Jupyter exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages. -- Robert M. Münch

Re: Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:00:00 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 11:01:39 UTC, Dibyendu Majumdar wrote: [...] The assembly code uses static allocation of registers, but because of the differences in how registers are used in Win64 versus Unix X64 - different

Re: Platform to make any programming language interactive & explorative (http://jupyter.org)

2017-11-12 Thread qznc via Digitalmars-d
On Sunday, 12 November 2017 at 12:12:43 UTC, Robert M. Münch wrote: Hi, that might be some interesting project to add D to, for interactive exploration. http://jupyter.org Project Jupyter exists to develop open-source software, open-standards, and services for interactive computing across

New QtE5 version and the test it - mini ide ide5

2017-11-12 Thread MGW via Digitalmars-d-announce
QtE5 - gained further development. The new mechanism of operation with memory is realized that allowed will get rid of crash of applications in case of completion. The summary code amount increases all the time. New classes from Qt are added. Now the code amount reached: qte5.d

Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
Hi, I have recently started work on building a VM for Lua (actually a derivative of Lua) in X86-64 assembly. I am using the dynasm tool that is part of LuaJIT. I was wondering whether I could also write this in D's inline assembly perhaps, but there is one aspect that I am not sure how to

Re: Project Elvis

2017-11-12 Thread Satoshi via Digitalmars-d
On Sunday, 12 November 2017 at 04:40:21 UTC, codephantom wrote: On Sunday, 12 November 2017 at 01:00:46 UTC, bauss wrote: I'm tired so I will end my post here. And I'm going to end all my posts here, cause I'm sick of arguing with MSFT fanboys, who want to restrain D's development by tying

Re: Inline assembly question

2017-11-12 Thread Nicholas Wilson via Digitalmars-d-learn
On Sunday, 12 November 2017 at 11:01:39 UTC, Dibyendu Majumdar wrote: Hi, I have recently started work on building a VM for Lua (actually a derivative of Lua) in X86-64 assembly. I am using the dynasm tool that is part of LuaJIT. I was wondering whether I could also write this in D's inline

Re: Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Sunday, 12 November 2017 at 11:55:23 UTC, Eugene Wissner wrote: On Sunday, 12 November 2017 at 11:01:39 UTC, Dibyendu Majumdar wrote: I have recently started work on building a VM for Lua (actually a derivative of Lua) in X86-64 assembly. I am using the dynasm tool that is part of LuaJIT. I

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Dmitry Olshansky via Digitalmars-d
On Saturday, 11 November 2017 at 14:54:42 UTC, Jonathan M Davis wrote: On Saturday, November 11, 2017 13:40:23 Michael V. Franklin via Digitalmars- d wrote: What's the official word on this: https://github.com/dlang/dmd/pull/6404 Does it need a DIP? If I revive it will it go anywhere? What

[Issue 17957] D shared library throws asserts when called from C detached pthread but not terminated with dlclose

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17957 --- Comment #3 from Nicolas F. --- fwiw, you can get rid of the naughty pthread_join call which would result in undefined behaviour for detached threads by replacing it with a simple sleep(3), which will result in the same

Re: Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Sunday, 12 November 2017 at 12:32:09 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 12:17:51 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 11:55:23 UTC, Eugene Wissner wrote: [...] Thank you - I probably could use something like this. It is uglier than the simpler

Re: Class allocators

2017-11-12 Thread Eduard Staniloiu via Digitalmars-d-learn
On Saturday, 11 November 2017 at 14:26:34 UTC, Nordlöw wrote: Have anybody used allocators to construct class instances? I might be wrong, but I think you are looking for std.experimental.allocator.make [0] [0] - https://dlang.org/phobos/std_experimental_allocator.html#make

Re: Inline assembly question

2017-11-12 Thread Eugene Wissner via Digitalmars-d-learn
On Sunday, 12 November 2017 at 15:25:43 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 12:32:09 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 12:17:51 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 11:55:23 UTC, Eugene Wissner wrote: [...] Thank you - I

Re: Class allocators

2017-11-12 Thread Per Nordlöw via Digitalmars-d-learn
On Sunday, 12 November 2017 at 18:34:42 UTC, Eduard Staniloiu wrote: On Saturday, 11 November 2017 at 14:26:34 UTC, Nordlöw wrote: Have anybody used allocators to construct class instances? I might be wrong, but I think you are looking for std.experimental.allocator.make [0] [0] -

Re: Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Sunday, 12 November 2017 at 18:48:02 UTC, Eugene Wissner wrote: https://dlang.org/spec/iasm.html#agregate_member_offsets aggregate.member.offsetof[someregister] Sorry I didn't phrase my question accurately. Presumably to use above with the mnemonics I would need additional mixin

How do I use Socket.select?

2017-11-12 Thread Anonymouse via Digitalmars-d-learn
I've been using blocking Sockets with timeouts for a while now, but wherever I look the word is "do consider using a non-blocking socket". Even the docs for std.socket.setOption; In a typical application, you might also want to consider using a non-blocking socket instead of setting a timeout

[Issue 16318] inherit from interface via abstract class

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16318 ponce changed: What|Removed |Added CC||alil...@gmail.com --- Comment #6

Re: Inline assembly question

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 21:27:28 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 18:48:02 UTC, Eugene Wissner wrote: https://dlang.org/spec/iasm.html#agregate_member_offsets aggregate.member.offsetof[someregister] Sorry I didn't phrase my question accurately. Presumably

Re: Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Sunday, 12 November 2017 at 22:00:58 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 21:27:28 UTC, Dibyendu Majumdar Does the compiler generate appropriate unwind information on Win64? Prsumably if a function is marked 'naked' then it doesn't? yeah about stack frame..., also don't

Re: Inline assembly question

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 22:20:46 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 22:00:58 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 21:27:28 UTC, Dibyendu Majumdar I am not sure I have understood above; will DMD generate the right Win64 unwind info for this

Re: Class allocators

2017-11-12 Thread Basile B. via Digitalmars-d-learn
On Sunday, 12 November 2017 at 18:46:54 UTC, Per Nordlöw wrote: On Sunday, 12 November 2017 at 18:34:42 UTC, Eduard Staniloiu wrote: On Saturday, 11 November 2017 at 14:26:34 UTC, Nordlöw wrote: Have anybody used allocators to construct class instances? I might be wrong, but I think you are

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Dmitry Olshansky via Digitalmars-d
On Sunday, 12 November 2017 at 16:00:28 UTC, Ola Fosheim Grøstad wrote: On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote: if (a & (flag1 | flag2)) to if ((a & (flag1 | flag2)) != 0) When the first is quite obvious. Just change the typing of the if-conditional to: if

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Jonathan M Davis via Digitalmars-d
On Sunday, November 12, 2017 19:13:00 Dmitry Olshansky via Digitalmars-d wrote: > On Sunday, 12 November 2017 at 16:00:28 UTC, Ola Fosheim Grøstad > > wrote: > > On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky > > > > wrote: > >> if (a & (flag1 | flag2)) > >> > >> to > >> > >> if

Re: Class allocators

2017-11-12 Thread Nordlöw via Digitalmars-d-learn
On Sunday, 12 November 2017 at 20:41:03 UTC, Basile B. wrote: No, the classes and structs of the examples are simply declared as 'static' because they are located in a 'unittest' block. You can ignore the keyword...it just means that they are declared as if they would stand at the global

Re: LDC 1.6.0-beta1

2017-11-12 Thread Nordlöw via Digitalmars-d-announce
On Sunday, 12 November 2017 at 15:57:19 UTC, kinke wrote: Hi everyone, on behalf of the LDC team, I'm glad to announce the first beta for LDC 1.6. The highlights of this version in a nutshell: * Based on D 2.076.1. * Experimental support for dynamic codegen at runtime ('manual JIT'). *

Re: Deprecate implicit `int` to `bool` conversion for integer literals

2017-11-12 Thread Michael V. Franklin via Digitalmars-d
On Sunday, 12 November 2017 at 16:57:05 UTC, Andrei Alexandrescu wrote: A DIP could be formulated to only address the problem at hand. BTW, here's a really fun example: void fun(long) { assert(0); } void fun(bool) {} enum int a = 2; enum int b = 1; void main() { fun(a - b); } The

Re: [OT] mobile rising

2017-11-12 Thread Walter Bright via Digitalmars-d
On 11/10/2017 2:54 PM, codephantom wrote: MSFT fanboy...at it again... Knock it off, everyone.

Re: Inline assembly question

2017-11-12 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Sunday, 12 November 2017 at 22:24:08 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 22:20:46 UTC, Dibyendu Majumdar wrote: On Sunday, 12 November 2017 at 22:00:58 UTC, Basile B. wrote: On Sunday, 12 November 2017 at 21:27:28 UTC, Dibyendu Majumdar I am not sure I have understood

[Issue 16398] aligned allocator: aligned reallocation is not defined

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16398 Basile B. changed: What|Removed |Added CC||b2.t...@gmx.com --- Comment #1

[Issue 16398] aligned allocator: add aligned reallocation for Posix

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16398 Basile B. changed: What|Removed |Added Summary|aligned allocator: aligned |aligned allocator: add

[Issue 16398] experimental allocators, add aligned reallocation for Posix

2017-11-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16398 Basile B. changed: What|Removed |Added Summary|aligned allocator: add |experimental allocators,