Re: D users on Google+

2011-07-14 Thread Tyro[a.c.edwards]
On 7/14/2011 10:58 AM, Mike Parker wrote: On 7/14/2011 9:10 AM, Tyro[a.c.edwards] wrote: On 7/13/2011 5:52 PM, simendsjo wrote: Are there any D users on Google+ I can stalk? The only one I found was Andrei Alexandrescu, but as he works at Facebook, I doubt he'll be posting much. An i

Re: D users on Google+

2011-07-13 Thread Tyro[a.c.edwards]
On 7/13/2011 5:52 PM, simendsjo wrote: Are there any D users on Google+ I can stalk? The only one I found was Andrei Alexandrescu, but as he works at Facebook, I doubt he'll be posting much. An invite would be appreciated... edwards [dot] ac [at] gmail [dot] com

Re: Inconsistencies between global imports and function local imports

2011-07-13 Thread Tyro[a.c.edwards]
On 7/13/2011 12:07 PM, Jonathan M Davis wrote: On Wednesday 13 July 2011 11:56:10 Tyro[a.c.edwards] wrote: Methinks function local imports (introduced in 2.054) is a great idea, however if it is to be allowed, I believe it should provide all the functionality of global imports: which it

Inconsistencies between global imports and function local imports

2011-07-12 Thread Tyro[a.c.edwards]
Methinks function local imports (introduced in 2.054) is a great idea, however if it is to be allowed, I believe it should provide all the functionality of global imports: which it currently does not. import std.stdio; import std.string; import std.conv; // Note: all of these import formats wo

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 7/1/2011 7:39 AM, Chris Molozian wrote: It's a great logo Mafi, is it possible to try it without the italics and see what that looks like? IMHO it's between: https://github.com/eegg/d-brand/raw/master/d-logo-7.png AND https://github.com/eegg/d-brand/raw/master/dlogo-mafi.png Though I like

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 7/1/2011 5:37 AM, James Fisher wrote: On Thu, Jun 30, 2011 at 9:27 PM, Tyro[a.c.edwards] mailto:nos...@home.com>> wrote: On 7/1/2011 12:38 AM, James Fisher wrote: https://github.com/eegg/d-__brand/raw/master/d-logo-1.png <https://github.com/eegg/d-brand/raw/mast

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 7/1/2011 5:58 AM, Mafi wrote: Am 30.06.2011 22:39, schrieb James Fisher: On Thu, Jun 30, 2011 at 9:29 PM, Andrej Mitrovic mailto:andrej.mitrov...@gmail.com>> wrote: On 6/30/11, James Fisher mailto:jameshfis...@gmail.com>> wrote: > Here's Mafi's suggestion in PNG: > https://github.com/eegg/d-

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 7/1/2011 4:02 AM, Steven Schveighoffer wrote: On Thu, 30 Jun 2011 14:12:58 -0400, James Fisher wrote: Sure thing: https://github.com/eegg/d-brand/raw/master/d-logo-5.png I have to say, I like this one the best. Even better than the original. And a more radical departure: https://github.

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 7/1/2011 4:35 AM, Mafi wrote: This is my try. What do you guys think about it? Now there's an Idea. Simple yet elegant... no boobs and retains the historical reference to Mars and her two moons. I like it. I'll even take the italics. ++ Vote Oh wait, I only have one vote.

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 7/1/2011 12:38 AM, James Fisher wrote: https://github.com/eegg/d-brand/raw/master/d-logo-1.png That explains it! The Devil's religion. Nope... Definitely not interested. More playing around. Criticisms: - it's a bit busy - as a rule, gradients don't add any worth - mixes planet/devil met

Re: D brand identity repository

2011-06-30 Thread Tyro[a.c.edwards]
On 6/30/2011 9:54 PM, James Fisher wrote: On Thu, Jun 30, 2011 at 11:55 AM, Walter Bright mailto:newshou...@digitalmars.com>> wrote: We've pretty much settled on the logo used on d-programming-language.org . It would be nice to get it rendered in va

htmlget.d example and unicode parsing

2011-04-30 Thread Tyro[a.c.edwards]
Hello all, I am trying to learn how to parse, modify, and redisplay a Japanese webpage passed to me in a form and am wondering if anyone has an example of how to do this. I looked at htmlget and found that it has a couple problems: namely, it is not conform to current D2 practices. I am not

Re: Hidden links for Language Reference on d-programming-language.org

2011-02-20 Thread Tyro[a.c.edwards]
On 2/21/2011 7:47 AM, Tyro[a.c.edwards] wrote: The links for Documentation: Language Reference gets hidden when you click on any of the following four items: o Lexical o Templates o Inline Assembler o Documentation Comments - Andrew By the way you cannot get to the list by clicking on

Hidden links for Language Reference on d-programming-language.org

2011-02-20 Thread Tyro[a.c.edwards]
The links for Documentation: Language Reference gets hidden when you click on any of the following four items: o Lexical o Templates o Inline Assembler o Documentation Comments - Andrew

Re: Principled method of lookup-or-insert in associative arrays?

2010-11-20 Thread Tyro[a.c.edwards]
On 11/21/2010 10:39 AM, Tomek Sowiński wrote: Dnia 21-11-2010 o 02:02:35 Tyro[a.c.edwards] napisał(a): The harm is confusion. Now = on arrays always means aliasing, but with your proposal, it may *sometimes* mean dupping. Imagine real-life code with type aliasing and type inference in play

Re: Principled method of lookup-or-insert in associative arrays?

2010-11-20 Thread Tyro[a.c.edwards]
On 11/21/2010 9:23 AM, Tomek Sowiński wrote: Tyro[a.c.edwards] napisał(a): What would be the harm if upon seeing your code the compiler did this: char[] chars = "abc".dup; char[] backdoor = chars; string s = chars.idup; assert (s == "abc"); backdoor.front = 'k&#

Re: Principled method of lookup-or-insert in associative arrays?

2010-11-20 Thread Tyro[a.c.edwards]
On 11/20/2010 9:39 PM, Michel Fortin wrote: On 2010-11-20 03:07:57 -0500, Andrei Alexandrescu said: TDPL has an example that can be reduced as follows: void main() { uint[string] map; foreach (line; stdin.byLine()) { ++map[line]; } } byLine reuses its buffer so it exposes it as char[]. There

Re: Principled method of lookup-or-insert in associative arrays?

2010-11-20 Thread Tyro[a.c.edwards]
On 11/20/2010 11:22 PM, Tomek Sowiński wrote: Dnia 20-11-2010 o 13:33:29 spir napisał(a): I find this proposal really necessary. But aren't there two issues here? * Comparison (for lookup) by value equality should not care about qualifiers (ie compare raw content, here plain array memory areas

Re: Error 42: Symbol Undefined __d_throwc

2010-11-20 Thread Tyro[a.c.edwards]
On 11/21/2010 1:13 AM, Jimmy Cao wrote: I can't reproduce it on Windows 7 with dmd 2.050. On Sat, Nov 20, 2010 at 12:45 AM, Tyro[a.c.edwards] mailto:nos...@home.com>> wrote: The following: import std.regex; void main() { string s = "$,";

Error 42: Symbol Undefined __d_throwc

2010-11-19 Thread Tyro[a.c.edwards]
The following: import std.regex; void main() { string s = "$,"; replace(s, regex("$",","), ""); // Is this possible? If so, what is the propper way to do it? assert(s == "", s); } Compiled with dmd.2.039, 042, 048, and 049 but yields a runtime error: D:\code>bug object.Excep

Re: problems playing audio with mciSendString

2010-11-02 Thread Tyro[a.c.edwards]
Thanks, The�problem�was�that�mciSendString�was�immediately�returning�control to�the�caller�after�being�called.�This�simple�change�fixed�the problem: mciSendString("play�myFile�wait");

problems playing audio with mciSendString

2010-11-02 Thread Tyro[a.c.edwards]
== Repost the article of Tyro[a.c.edwards] (nos...@home.com) == Posted at 2010/11/02 04:26 to digitalmars.D.learn Hello�all, I�would�really�appreciate�some�assistance�on�this.�The�intent�is�to create�a�vocabulary/flashcard�program�with�proper�pronunciations. Pronunciations�are�saved�as

Re: Backquotes look like regular quotes in TDPL?

2010-06-28 Thread Tyro[a.c.edwards]
== Quote from Jacob Carlborg (d...@me.com)'s article > Is it just me or are the backquotes looking like regular quotes in TDPL? > They're introduced on page 36, section 2.2.5.1. It's not you, they do in fact look like regular quotes. That however, is a byproduct of the font chosen. Look closely at

Re: [TDPL] arrays of D future

2010-06-27 Thread Tyro[a.c.edwards]
== Quote from Lutger (lutger.blijdest...@gmail.com)'s article > wrote: > > Andrei, > > > > I must say that the reading is absolutely enjoyable. I do have one > > question regarding the StackImpl example on page 234. Are you forecasting > > future functionality that arrays will support with your us

[TDPL] arrays of D future

2010-06-27 Thread Tyro[a.c.edwards]
Andrei, I must say that the reading is absolutely enjoyable. I do have one question regarding the StackImpl example on page 234. Are you forecasting future functionality that arrays will support with your use of .empty, .back, and .popBack or am I too na�ve to understand that I need to implement

readf anyone?

2010-06-22 Thread Tyro[a.c.edwards]
So I'm digging in and enjoying the read (and let me tell you it's a pretty interesting read), then I flip to page 22 (I read slow) and stumbled onto this code: for (double x; readf(" % ", &x) == 1; ) { [snip] } Wait that don't look right. I don't remember readf() being implemented. So I decide

Re: This just in: authorless TDPL becomes collector's edition

2010-06-22 Thread Tyro[a.c.edwards]
good for you, sucks for me though, I didn't get a collector's edition and I ordered my copy back in over six months ago.

Re: All this talk about finalising D2 makes me worried

2009-07-16 Thread Tyro [a.c.edwards]
Bill Baxter wrote: On Wed, Jul 15, 2009 at 6:21 PM, Steven Schveighoffer wrote: On Wed, 15 Jul 2009 13:22:30 -0400, Stewart Gordon wrote: Well D1.0 was pretty much an arbitrary line in the sand. D2.0release (or whatever they decide to call it) might as well be too. And if memory serves me c

Re: What's the current state of D?

2009-05-08 Thread Tyro[a.c.edwards]
On 5/9/2009 11:24 AM, grauzone wrote: beyond and I'm quite sure that I'm not the only one. For all the Naysayers out there... Keep saying nay and go the hell away. D2 is just where it is supposed to be. Let’s not end up in the same mess we did by trying to make impatient people happy and releasin

Re: What's the current state of D?

2009-05-08 Thread Tyro[a.c.edwards]
On 5/9/2009 3:38 AM, Steve Teale wrote: Walter Bright Wrote: Steve Teale wrote: This is the sort of answer that will kill D. The guy comes back after 2 years, asks a straight question, and get's told "business as usual, we're still arguing among ourselves about what it should be". Maybe Tiobe

Re: Error: xxx is not an lvalue

2009-05-03 Thread Tyro[a.c.edwards]
} Foo b = new foo; b[0] = 1; Why is it necessary to have a separate/different "accessor" function? Tyro[a.c.edwards] wrote: On 5/3/2009 6:25 PM, Unknown W. Brackets wrote: This code works fine (D 2.x only): class Test { private int[int] _testMap; public ref int[

Re: Error: xxx is not an lvalue

2009-05-03 Thread Tyro[a.c.edwards]
On 5/3/2009 6:25 PM, Unknown W. Brackets wrote: This code works fine (D 2.x only): class Test { private int[int] _testMap; public ref int[int] testMap() {return _testMap;} } void main() { Test test = new Test(); test.testMap[0] = 1; } Note the "ref". Otherwise, a value is returned which is not

Re: Error: xxx is not an lvalue

2009-05-02 Thread Tyro[a.c.edwards]
On 5/3/2009 6:36 AM, Denis Koroskin wrote: On Sun, 03 May 2009 01:02:41 +0400, Tyro[a.c.edwards] wrote: On 5/3/2009 3:44 AM, flourish wrote: Hi, why does the following code not compile -- or how to declare a (usable) property of an associative array field? // class Test

Re: Error: xxx is not an lvalue

2009-05-02 Thread Tyro[a.c.edwards]
On 5/3/2009 3:44 AM, flourish wrote: Hi, why does the following code not compile -- or how to declare a (usable) property of an associative array field? // class Test { private int[int] _testMap; public int[int] testMap() {return _testMap;} public void opIndexAss

Re: Error: xxx is not an lvalue

2009-05-02 Thread Tyro[a.c.edwards]
On 5/3/2009 3:44 AM, flourish wrote: Hi, why does the following code not compile -- or how to declare a (usable) property of an associative array field? // class Test { private int[int] _testMap; public int[int] testMap() {return _testMap;} } testMap() is a getter a

std.date Cyclic dependency

2009-03-10 Thread Tyro[a.c.edwards]
Hello everyone, It's been quite a while but I've kept close watch on the development of things here... must say that I am very thankful for all the work everyone has done in making D what it is today. The following code: private import std.date; void main(){} generates the runtime e