HP Printer Customer Phone Number +1-888-600-6920 HP Printer Helpline

2018-07-22 Thread Elizabeth Jennifer via Digitalmars-d
You can connect your HP wireless printer to your laptop or PC by following these steps: o Confirm that your router is switched on and working. o Switch on your HP wireless printer. o Hit the arrow key on the touchscreen. Dab “Setup,” then “Network,” and after it “Wireless Setup Wiza

Re: DIP 1011--extern(delegate)--Preliminary Review Round 1

2018-07-22 Thread Jonathan Marler via Digitalmars-d
On Saturday, 21 July 2018 at 17:54:17 UTC, soolaïman wrote: I know this one year old already but the DIP is still in formal review. [...] This doesn't work because the ABI of a normal function is NOT THE SAME as the ABI of a delegate. That's the only reason the DIP exists is to solve this

Re: DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-22 Thread Steven Schveighoffer via Digitalmars-d
On 7/20/18 3:36 PM, Jonathan M Davis wrote: The reality of the matter is that it's always going to be up to the API author on some level - e.g. even if the proposed changes were implemented, there's still the question of whether a function's parameter should be marked with ref or not, and arguab

Re: Bug? opIn with associative array keyed on static arrays

2018-07-22 Thread ag0aep6g via Digitalmars-d
On Sunday, 22 July 2018 at 19:42:45 UTC, Peter Alexander wrote: void main() { int[int[1]] aa; aa[[2]] = 1; assert([2] in aa); } --- This assertion fails in 2081.1. Is this a bug? Definitely. Looks like `[2]` makes a dynamic array (length + pointer) and `in` reinterpre

Re: DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-22 Thread Marco Leise via Digitalmars-d
Am Fri, 20 Jul 2018 10:33:56 -0600 schrieb Jonathan M Davis : > On Friday, July 20, 2018 15:50:29 meppl via Digitalmars-d wrote: > > On Friday, 20 July 2018 at 13:21:11 UTC, Jonathan M Davis wrote: > > > On Friday, July 20, 2018 05:16:53 Mike Parker via Digitalmars-d > > > > > > wrote: > > >>

Re: C's Biggest Mistake on Hacker News

2018-07-22 Thread Walter Bright via Digitalmars-d
On 7/21/2018 11:53 PM, Walter Bright wrote: My article C's Biggest Mistake on front page of https://news.ycombinator.com ! Direct link: https://news.ycombinator.com/item?id=17585357

Bug? opIn with associative array keyed on static arrays

2018-07-22 Thread Peter Alexander via Digitalmars-d
void main() { int[int[1]] aa; aa[[2]] = 1; assert([2] in aa); } --- This assertion fails in 2081.1. Is this a bug? https://dpaste.dzfl.pl/d4c0d4607482

Re: DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-22 Thread Jonathan M Davis via Digitalmars-d
On Sunday, July 22, 2018 01:53:53 Manu via Digitalmars-d wrote: > I use the term 'meta' (as in meta-programming) to refer to > compile-time constructions. > I don't tend to say "a template", because many problematic > constructions are compositions, and then consider mixin; not > 'template's. > I f

Re: with and shadowing variables

2018-07-22 Thread Jonathan M Davis via Digitalmars-d
On Sunday, July 22, 2018 12:13:43 Anonymouse via Digitalmars-d wrote: > Can this be made a compiler warning? > > struct Foo > { > int i; > } > > void main() > { > Foo foo; > > with (foo) > { > i = 42; > int i; > i = 24; > } > } > > I'm hesitant to

with and shadowing variables

2018-07-22 Thread Anonymouse via Digitalmars-d
Can this be made a compiler warning? struct Foo { int i; } void main() { Foo foo; with (foo) { i = 42; int i; i = 24; } } I'm hesitant to file a bug because it'll just be immediately closed with a link to https://dlang.org/spec/statement.html#WithS

Re: DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-22 Thread Bastiaan Veelo via Digitalmars-d
On Sunday, 22 July 2018 at 08:53:53 UTC, Manu wrote: On Sun, 22 Jul 2018 at 01:00, Johannes Loher via Digitalmars-d wrote: - Somebody already mentioned this, but this sections sounds confusing, please find a better wording: "An example may be some meta that reflects or receives a function by

Re: DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-22 Thread Manu via Digitalmars-d
On Sun, 22 Jul 2018 at 01:00, Johannes Loher via Digitalmars-d wrote: > > On Saturday, 21 July 2018 at 08:59:39 UTC, Manu wrote: > > 4. A struct-type getter that returns by-val exhibits this > > gotcha in a > > variety of ways; you 'get' the member (a by-val copy), then > > mutate a > > member in

Re: DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-22 Thread Johannes Loher via Digitalmars-d
On Saturday, 21 July 2018 at 08:59:39 UTC, Manu wrote: 4. A struct-type getter that returns by-val exhibits this gotcha in a variety of ways; you 'get' the member (a by-val copy), then mutate a member in any way, (ie, call a method), and you've accidentally modified the copy, not the source val