q{ @ }

2011-09-25 Thread Peter Alexander
See: http://d-programming-language.org/lex.html It says: q{ @ } // error, @ is not a valid D token but... http://d-programming-language.org/lex.html#Token This clearly shows that @ is a token. So, which is it?

Re: q{ @ }

2011-09-25 Thread Peter Alexander
On 25/09/11 4:49 PM, Peter Alexander wrote: See: http://d-programming-language.org/lex.html It says: q{ @ } // error, @ is not a valid D token but... http://d-programming-language.org/lex.html#Token This clearly shows that @ is a token. So, which is it? btw... import std.stdio; void

Re: q{ @ }

2011-09-25 Thread Timon Gehr
On 09/25/2011 05:49 PM, Peter Alexander wrote: See: http://d-programming-language.org/lex.html It says: q{ @ } // error, @ is not a valid D token but... http://d-programming-language.org/lex.html#Token This clearly shows that @ is a token. So, which is it? @ is a token. The documentation

Re: q{ @ }

2011-09-25 Thread Bernard Helyer
On Sun, 25 Sep 2011 18:10:53 +0200, Timon Gehr wrote: > @ is a token. The documentation was probably written when it was not. Yep, so Peter's stumbled on a bug. Bugzilla that shit, Peter! :D

Re: q{ @ }

2011-09-26 Thread Peter Alexander
On 26/09/11 2:47 AM, Bernard Helyer wrote: On Sun, 25 Sep 2011 18:10:53 +0200, Timon Gehr wrote: @ is a token. The documentation was probably written when it was not. Yep, so Peter's stumbled on a bug. Bugzilla that shit, Peter! :D Well, if outdated documentation is a bug, then I suppose so.

Re: q{ @ }

2011-09-26 Thread Jonathan M Davis
On Monday, September 26, 2011 12:09 Peter Alexander wrote: > On 26/09/11 2:47 AM, Bernard Helyer wrote: > > On Sun, 25 Sep 2011 18:10:53 +0200, Timon Gehr wrote: > >> @ is a token. The documentation was probably written when it was not. > > > > Yep, so Peter's stumbled on a bug. Bugzilla that shit

Re: q{ @ }

2011-09-27 Thread Peter Alexander
On 26/09/11 8:30 PM, Jonathan M Davis wrote: On Monday, September 26, 2011 12:09 Peter Alexander wrote: On 26/09/11 2:47 AM, Bernard Helyer wrote: On Sun, 25 Sep 2011 18:10:53 +0200, Timon Gehr wrote: @ is a token. The documentation was probably written when it was not. Yep, so Peter's stumb

Re: q{ @ }

2011-09-27 Thread Jonathan M Davis
On Tuesday, September 27, 2011 11:05 Peter Alexander wrote: > On 26/09/11 8:30 PM, Jonathan M Davis wrote: > > On Monday, September 26, 2011 12:09 Peter Alexander wrote: > >> On 26/09/11 2:47 AM, Bernard Helyer wrote: > >>> On Sun, 25 Sep 2011 18:10:53 +0200, Timon Gehr wrote: > @ is a token.

Re: q{ @ }

2011-09-27 Thread Peter Alexander
On 27/09/11 9:02 PM, Jonathan M Davis wrote: On Tuesday, September 27, 2011 11:05 Peter Alexander wrote: On 26/09/11 8:30 PM, Jonathan M Davis wrote: On Monday, September 26, 2011 12:09 Peter Alexander wrote: On 26/09/11 2:47 AM, Bernard Helyer wrote: On Sun, 25 Sep 2011 18:10:53 +0200, Timon

regex(q"<[^]>")

2017-07-17 Thread unDEFER via Digitalmars-d
Hello! The code in the header leads to assertion! But the user inputed data don't must leads to any assertions!

Re: regex(q"<[^]>")

2017-07-17 Thread unDEFER via Digitalmars-d
Sorry, fixed in the newest DMD also as the other bug in regex...

Re: regex(q"<[^]>")

2017-07-17 Thread unDEFER via Digitalmars-d
On Monday, 17 July 2017 at 20:43:29 UTC, unDEFER wrote: Sorry, fixed in the newest DMD also as the other bug in regex... Oh, no. Not fixed. Fixed only other bug.

Re: regex(q"<[^]>")

2017-07-18 Thread Anton Fediushin via Digitalmars-d
On Monday, 17 July 2017 at 17:00:10 UTC, unDEFER wrote: Hello! The code in the header leads to assertion! But the user inputed data don't must leads to any assertions! This regular expression is invalid. [bar] - Matches 'b' or 'a' or 'r' [^bar] - Matches everything but 'b' or 'a' or 'r'. So, [

Re: regex(q"<[^]>")

2017-07-18 Thread unDEFER via Digitalmars-d
On Tuesday, 18 July 2017 at 08:56:12 UTC, Anton Fediushin wrote: Not a bug, but I think that `regex()` should fail with a nice exception, not silently fail. Yes, exception, not assert.

Re: regex(q"<[^]>")

2017-07-18 Thread Temtaime via Digitalmars-d
On Tuesday, 18 July 2017 at 16:34:39 UTC, unDEFER wrote: On Tuesday, 18 July 2017 at 08:56:12 UTC, Anton Fediushin wrote: Not a bug, but I think that `regex()` should fail with a nice exception, not silently fail. Yes, exception, not assert. The forum is not a bugtracker

Re: regex(q"<[^]>")

2017-07-19 Thread Dmitry Olshansky via Digitalmars-d
On Monday, 17 July 2017 at 17:00:10 UTC, unDEFER wrote: Hello! The code in the header leads to assertion! But the user inputed data don't must leads to any assertions! Please file at: issues.dlang.org Thanks! --- Dmitry Olshansky

Re: regex(q"<[^]>")

2017-07-19 Thread unDEFER via Digitalmars-d
On Wednesday, 19 July 2017 at 16:59:24 UTC, Dmitry Olshansky wrote: On Monday, 17 July 2017 at 17:00:10 UTC, unDEFER wrote: Please file at: issues.dlang.org Thanks! --- Dmitry Olshansky Thank you, https://issues.dlang.org/show_bug.cgi?id=17668 https://issues.dlang.org/show_bug.cgi?id=17667

Q: commercial compiler manufacturer

2011-06-03 Thread William Bolish
Q: Will D likely ever be picked up by a major compiler manufacturer? The language looks really good, but without a major compiler manufacturer promoting & supporting the language, it seems major projects will never be undertaken by large corporations. This is what I am hearing from the firm

Re: Q: commercial compiler manufacturer

2011-06-03 Thread Vladimir Panteleev
On Sat, 04 Jun 2011 07:01:31 +0300, William Bolish wrote: Q: Will D likely ever be picked up by a major compiler manufacturer? The language looks really good, but without a major compiler manufacturer promoting & supporting the language, it seems major projects will never be undert

Re: Q: commercial compiler manufacturer

2011-06-03 Thread Jesse Phillips
William Bolish Wrote: > Q: Will D likely ever be picked up by a major compiler manufacturer? > > The language looks really good, but without a major compiler manufacturer > promoting & supporting the language, it seems major projects will never be > undertaken by large corpora

Re: Q: commercial compiler manufacturer

2011-06-03 Thread Brad Roberts
On 6/3/2011 9:01 PM, William Bolish wrote: > Q: Will D likely ever be picked up by a major compiler manufacturer? > > The language looks really good, but without a major compiler manufacturer > promoting & supporting the language, it seems major projects will never be >

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Daniel Gibson
Am 04.06.2011 06:01, schrieb William Bolish: Q: Will D likely ever be picked up by a major compiler manufacturer? The language looks really good, but without a major compiler manufacturer promoting& supporting the language, it seems major projects will never be undertaken by large corporat

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Caligo
On Fri, Jun 3, 2011 at 11:08 PM, Vladimir Panteleev wrote: > On Sat, 04 Jun 2011 07:01:31 +0300, William Bolish > wrote: > >> Q: Will D likely ever be picked up by a major compiler manufacturer? >> >> The language looks really good, but without a major compile

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Caligo
On Sat, Jun 4, 2011 at 3:10 AM, Daniel Gibson wrote: > Am 04.06.2011 06:01, schrieb William Bolish: >> >> Q: Will D likely ever be picked up by a major compiler manufacturer? >> >> The language looks really good, but without a major compiler manufacturer >> promot

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Andrei Alexandrescu
On 06/03/2011 11:01 PM, William Bolish wrote: Q: Will D likely ever be picked up by a major compiler manufacturer? The language looks really good, but without a major compiler manufacturer promoting& supporting the language, it seems major projects will never be undertaken by l

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Trass3r
Brad gave a sensible response. If I were asked, I'd point out that we are making serious headways with the GNU compiler suite integration; I hope we'll have some news soon about that. Looking forward to that! Beyond that, a company looking for a safe bet would find it difficult to choose

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Daniel Gibson
Am 04.06.2011 21:33, schrieb Trass3r: >> Brad gave a sensible response. If I were asked, I'd point out that we >> are making serious headways with the GNU compiler suite integration; I >> hope we'll have some news soon about that. > > Looking forward to that! > > >> Beyond that, a company lookin

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Daniel Gibson
Am 04.06.2011 21:50, schrieb Trass3r: >> Two? I only know of that company in Berlin that does something related >> to stalking people on the Internet to deliver personalized ads or >> something like that. What's the other one? > > To my knowledge http://www.funkwerk-itk.com/ Interesting, thanks!

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Trass3r
Two? I only know of that company in Berlin that does something related to stalking people on the Internet to deliver personalized ads or something like that. What's the other one? To my knowledge http://www.funkwerk-itk.com/

Q about Phobos regex's architecture

2017-04-12 Thread Nick Sabalausky (Abscissa) via Digitalmars-d
I'll admit this is a bit unorthodox, but...I've been wondering about something regarding Phobos regex's implementation and internal architecture: Just how compartmentalized is the parsing of standard PCRE regex syntax vs actual usage of regexes once parsed? Or more to the point, (and again, I

Re: Q about Phobos regex's architecture

2017-04-13 Thread Dmitry Olshansky via Digitalmars-d
On 4/13/17 7:53 AM, Nick Sabalausky (Abscissa) wrote: I'll admit this is a bit unorthodox, but...I've been wondering about something regarding Phobos regex's implementation and internal architecture: Just how compartmentalized is the parsing of standard PCRE regex syntax vs actual usage of regexe

[Q]STM with Strict ordering for Grid applications

2012-04-29 Thread vladp
hello, first message here. Just started learning about D Looking to see if D can be used as 'System language for Grid computing' Specifically for building up distributed coordinated services such as distributed File systems/etc. One specific thing I am looking for is Clojure avout like Software

Re: Another Q about Unicode, Folding Greek edition!

2010-06-08 Thread Nick Sabalausky
Thanks all for the helpful responses. Since we seem to have some real Unicode-knowledge people here, I'd like to repost a question I had asked elsewhere awhile back, but didn't get an answer: Can someone explain how

Re: Another Q about Unicode, Folding Greek edition!

2010-06-09 Thread Don
Nick Sabalausky wrote: Thanks all for the helpful responses. Since we seem to have some real Unicode-knowledge people here, I'd like to repost a question I had asked elsewhere awhile back, but didn't get an answer: ---

Side-Q: GC/ARC/Allocators - How many GC's

2014-02-04 Thread Regan Heath
How many GC's do we get, if we build a D application linking it to a D library statically, or dynamically, or by loading it at runtime? It seems to me, that one thing people really want in this discussion is to be able to select a single allocation strategy for their application, regardless

Q: What are the rules for emitting template code?

2010-10-23 Thread Austin Hastings
Howdy, This is a bit involved, so bear with me. Suppose I have a template, Decider(Args...) and some other templates, Option1(...), Option2(...), etc. The job of Decider() is to decide, based on the given parameters, which of the possible OptionN templates to use. Decider uses "static if"

Re: Side-Q: GC/ARC/Allocators - How many GC's

2014-02-04 Thread Ola Fosheim Grøstad
On Tuesday, 4 February 2014 at 13:52:53 UTC, Regan Heath wrote: It seems to me, that one thing people really want in this discussion is to be able to select a single allocation strategy for their application, regardless of the libraries involved. I want: 1. To use full GC during start up and

[OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-08-30 Thread Nick Sabalausky
I've been trying to make a grammar for the Haxe langauge, and I've been having a hell of a time emulating it's expression-based if/if-else (as opposed to statement-based as in D). I'm sure a big part of it is my inexperience with writing grammars, but I've also been starting to wonder if it's i

Re: Q: What are the rules for emitting template code?

2010-10-24 Thread Simen kjaeraas
Austin Hastings wrote: If Decider uses Option1.sizeof, does any Option1 code get emitted? For sizeof to be known, the template would have to be instantiated, yes. If Decider uses some external function that makes use of type aliases in Option1, (example: Option1() { alias byte value_t; }

Re: Q: What are the rules for emitting template code?

2010-10-25 Thread Austin Hastings
On 10/24/2010 5:16 AM, Simen kjaeraas wrote: Austin Hastings wrote: If Decider uses Option1.sizeof, does any Option1 code get emitted? For sizeof to be known, the template would have to be instantiated, yes. Instantiated does not necessarily imply emitting code, I think. (Of course, this

Re: Q: What are the rules for emitting template code?

2010-10-25 Thread Steven Schveighoffer
On Sun, 24 Oct 2010 00:06:23 -0400, Austin Hastings wrote: Howdy, This is a bit involved, so bear with me. Suppose I have a template, Decider(Args...) and some other templates, Option1(...), Option2(...), etc. The job of Decider() is to decide, based on the given parameters, which of

Re: Q: What are the rules for emitting template code?

2010-10-25 Thread Jonathan M Davis
On Monday, October 25, 2010 06:08:24 Austin Hastings wrote: > On 10/24/2010 5:16 AM, Simen kjaeraas wrote: > > Austin Hastings wrote: > >> If Decider uses Option1.sizeof, does any Option1 code get emitted? > > > > For sizeof to be known, the template would have to be instantiated, yes. > > Insta

Re: Q: What are the rules for emitting template code?

2010-10-25 Thread Fawzi Mohamed
On 25-ott-10, at 18:04, Steven Schveighoffer wrote: On Sun, 24 Oct 2010 00:06:23 -0400, Austin Hastings > wrote: Howdy, This is a bit involved, so bear with me. Suppose I have a template, Decider(Args...) and some other templates, Option1(...), Option2(...), etc. The job of Decider() is

Q: Is there a (different) work-around for AA.keys problems?

2011-01-29 Thread Austin Hastings
Howdy, I'm jammed up against a variation of the issue#3745/3770 AA linkage problem. In my case, I'm using an int[ string ] AA, and I'm getting the dreaded Error 42: Symbol Undefined _D6object28__T16AssociativeArrayTAyaTiZ16AssociativeArray4keysMFNdZAAya My code looks something like: class g

Re: [OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-08-31 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:h7fl1o$f8...@digitalmars.com... > I've been trying to make a grammar for the Haxe langauge, and I've been > having a hell of a time emulating it's expression-based if/if-else (as > opposed to statement-based as in D). I'm sure a big part of it is my > in

Re: [OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-08-31 Thread Jeremie Pelletier
Nick Sabalausky Wrote: > "Nick Sabalausky" wrote in message > news:h7fl1o$f8...@digitalmars.com... > > I've been trying to make a grammar for the Haxe langauge, and I've been > > having a hell of a time emulating it's expression-based if/if-else (as > > opposed to statement-based as in D). I'm

Re: [OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-08-31 Thread Tim M
Nick Sabalausky Wrote: > "Nick Sabalausky" wrote in message > news:h7fl1o$f8...@digitalmars.com... > > I've been trying to make a grammar for the Haxe langauge, and I've been > > having a hell of a time emulating it's expression-based if/if-else (as > > opposed to statement-based as in D). I'm

Re: [OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-08-31 Thread Nick Sabalausky
"Tim M" wrote in message news:h7hrf2$vj...@digitalmars.com... > > Although I don't really understand your problem or how it relates to the D > lang. It doesn't really relate to D. Hence "[OT]" off-topic ;) But there seem to be a number of people here that are good with language theory (or at l

Re: [OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-09-03 Thread Danny Wilson
Nick are you on freenode.org #haxe ? :-)

Re: [OT] Haxe "if" context-sensitive? (Q for Grammar Experts)

2009-09-03 Thread Nick Sabalausky
"Danny Wilson" wrote in message news:op.uzpaihg5bmu...@danny-wilsons-ep45-ds4.local... > Nick are you on freenode.org #haxe ? > > :-) No, I haven't really used IRC in ages. If you (or anyone) wanted to contact me privately though, my email is here ( http://www.semitwist.com/contact.html ) (yes

Re: Q: Is there a (different) work-around for AA.keys problems?

2011-01-29 Thread Adam D. Ruppe
Shooting in the dark here (I can't reproduce the error for whatever reason), but for similar problems, I've found this fixes it: Add a function somewhere in your file that says: void hackAroundBug() { writeln(typeid(int[string])); } You never actually need to call it. Just putting it there

Re: Q: Is there a (different) work-around for AA.keys problems?

2011-01-29 Thread Austin Hastings
The hackAroundBug()/typeid approach didn't work for me - I still got the error 42. Presently, I'm using a local method, but this is annoying for obvious reasons: string[] aa_keys( int[ string ] aa ) { return aa.keys; } Even more annoying is that this wor

proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-04 Thread Timothee Cour via Digitalmars-d
{} for tuples hasn't worked out since it was deemed ambiguous with delegate syntax (was it for the case of empty statements/tuple?). How about the following syntax instead: {} // delegate (existing syntax) q{...} // string literal (existing syntax) t{...} // tuple(a,b) (proposed synt

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread ag0aep6g via Digitalmars-d
On 05.04.2016 07:45, Timothee Cour via Digitalmars-d wrote: How about the following syntax instead: {} // delegate (existing syntax) q{...} // string literal (existing syntax) t{...} // tuple(a,b) (proposed syntax) T{...} // TypeTuple!(a,b) (proposed syntax) In existing syntax, most

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 April 2016 at 05:45:08 UTC, Timothee Cour wrote: {} for tuples hasn't worked out since it was deemed ambiguous with delegate syntax (was it for the case of empty statements/tuple?). How about the following syntax instead: {} // delegate (existing syntax) q{...} // s

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread jmh530 via Digitalmars-d
On Tuesday, 5 April 2016 at 15:29:06 UTC, ZombineDev wrote: Action action = {}; // error: `{}` is an empty tuple, can't be assigned to delegates auto t = {}; // deduced as an empty tuple. Also, the non-empty {} syntax can't be mistaken for a function literal because non-empty function literals

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 5 April 2016 at 05:45:08 UTC, Timothee Cour wrote: {} for tuples hasn't worked out since it was deemed ambiguous with delegate syntax (was it for the case of empty statements/tuple?). How about the following syntax instead: {} // delegate (existing syntax) q{...} // s

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 5 April 2016 at 16:56:15 UTC, Jack Stouffer wrote: Tuple and AliasSeq are library types, so the chance that they will be added into the language is slim to none. Yes on Tuple, but AliasSeq actually is in the language (just unnamed there, it is what you get with T... in a template

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread ZombineDev via Digitalmars-d
On Tuesday, 5 April 2016 at 16:34:49 UTC, jmh530 wrote: On Tuesday, 5 April 2016 at 15:29:06 UTC, ZombineDev wrote: Action action = {}; // error: `{}` is an empty tuple, can't be assigned to delegates auto t = {}; // deduced as an empty tuple. Also, the non-empty {} syntax can't be mistaken for

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread Timon Gehr via Digitalmars-d
stead: {} // delegate (existing syntax) q{...} // string literal (existing syntax) t{...} // tuple(a,b) (proposed syntax) T{...} // TypeTuple!(a,b) (proposed syntax) See also [1] where i propose i{...} for a D analog of C++11's uniform initialization. [1] EMAIL: uniform initialization in D (as in

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread ZombineDev via Digitalmars-d
tuple?). How about the following syntax instead: {} // delegate (existing syntax) q{...} // string literal (existing syntax) t{...} // tuple(a,b) (proposed syntax) T{...} // TypeTuple!(a,b) (proposed syntax) See also [1] where i propose i{...} for a D analog of C++11'

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-05 Thread Timon Gehr via Digitalmars-d
as it for the case of empty statements/tuple?). How about the following syntax instead: {} // delegate (existing syntax) q{...} // string literal (existing syntax) t{...} // tuple(a,b) (proposed syntax) T{...} // TypeTuple!(a,b) (proposed syntax) See also [1] where i propose i{...} fo

Re: proposed syntax for tuple: t{} and TypeTuple: T{} (cf precedent of q{...})

2016-04-08 Thread Nick Treleaven via Digitalmars-d
On Tuesday, 5 April 2016 at 14:00:46 UTC, ag0aep6g wrote: I'm not sure if the new syntax is worth adding, though. `T{...}` (or `T[...]`) saves just one character over `T!(...)`. The latter can be done without touching the language. For the value tuple, one can do `alias t = std.typecons.tuple;`