std.json parsing real numbers.

2013-08-08 Thread khurshid
I just check std.json for parsing real numbers. import std.json; import std.stdio: writeln; int main() { auto json = parseJSON("1.24E +1"); writeln(toJSON(&json)); return 0; } and output: 12.4 It's bug or normal ?

Re: DLang MongoDB Drive ??

2013-08-08 Thread JN
On Thursday, 8 August 2013 at 06:53:12 UTC, Batuhan Göksu wrote: d to make MongoDB database connection data extraction, data, how do I do want to add friends would appreciate if you help me in this regard. Check if you can use the driver from vibe.d project, if it's not possible, you can alwa

Re: DLang MongoDB Drive ??

2013-08-08 Thread Batuhan Göksu
thanks but how can I solve using vibe.d I do not want to use your own server that hosts the very mass of a framework vibe.d How do I use the driver for MongoDB So the c

Re: std.json parsing real numbers.

2013-08-08 Thread MrSmith
On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote: I just check std.json for parsing real numbers. import std.json; import std.stdio: writeln; int main() { auto json = parseJSON("1.24E +1"); writeln(toJSON(&json)); return 0; } and output: 12

Re: database applications

2013-08-08 Thread WhereAmI
On Wednesday, 7 August 2013 at 21:41:30 UTC, John Joyus wrote: On 08/06/2013 04:55 PM, Carlos wrote: It is called GtkD. Are there any applications written with GtkD for Windows? Just want to look at the screen shots. Thanks. http://deoma-cmd.ru/en/SiteCreator.aspx biggest what i see

Re: std.json parsing real numbers.

2013-08-08 Thread khurshid
On Thursday, 8 August 2013 at 10:11:07 UTC, MrSmith wrote: On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote: I just check std.json for parsing real numbers. import std.json; import std.stdio: writeln; int main() { auto json = parseJSON("1.24E +1");

Re: std.array string.split("") bug

2013-08-08 Thread Andre Artus
On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov wrote: Something strange happens when I do this: unittest { import std.array, std.string; string s = "test"; //assert(s.toUpper.split("").join("-") == "T-E-S-T"); //"Memory allocation failed" //[Finished in 26.5s]

Re: DLang MongoDB Drive ??

2013-08-08 Thread John Colvin
On Thursday, 8 August 2013 at 10:05:14 UTC, Batuhan Göksu wrote: thanks but how can I solve using vibe.d I do not want to use your own server that hosts the very mass of a framework vibe.d How do I use the driver for MongoDB So the c It's not clear what you are asking, probably because of

Re: ctRegex! vs regex error

2013-08-08 Thread Anthony Goins
On Wednesday, 7 August 2013 at 22:36:39 UTC, Milvakili wrote: Hi, I can compile void main(){ auto myRegx = regex(`(?!test)`); } however can not compile this one void main(){ auto myRegx = ctRegex!(`(?!test)`); } code sample:http://dpaste.dzfl.pl/d38926f4 and get the following error: ... std

parseJSON bug

2013-08-08 Thread khurshid
std.json parseJSON has a bug, // leading whitespaces auto json = parseJSON("1 .000"); -- should throws, but it's success parsed as `1.000` . Khurshid...

Re: parseJSON bug

2013-08-08 Thread khurshid
On Thursday, 8 August 2013 at 12:08:00 UTC, khurshid wrote: std.json parseJSON has a bug, // leading whitespaces auto json = parseJSON("1 .000"); -- should throws, but it's success parsed as `1.000` . Khurshid... Or more... auto

Re: parseJSON bug

2013-08-08 Thread SteveGuo
On Thursday, 8 August 2013 at 12:08:00 UTC, khurshid wrote: std.json parseJSON has a bug, // leading whitespaces auto json = parseJSON("1 .000"); -- should throws, but it's success parsed as `1.000` . Khurshid... I think bug repor

Re: parseJSON bug

2013-08-08 Thread David
Am 08.08.2013 14:15, schrieb khurshid: > On Thursday, 8 August 2013 at 12:08:00 UTC, khurshid wrote: >> >> std.json parseJSON has a bug, >> >> // leading whitespaces >> auto json = parseJSON("1 .000"); >> >> -- should throws, but it's succes

Re: parseJSON bug

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 12:08:00 UTC, khurshid wrote: std.json parseJSON has a bug, // leading whitespaces auto json = parseJSON("1 .000"); -- should throws, but it's success parsed as `1.000` . Khurshid... I don't think thi

Re: parseJSON bug

2013-08-08 Thread bearophile
Tofu Ninja: I don't think this is a bug, the json spec seems to indicate that this is valid. The JSON decode of the Python2.6.6 standard library seems to refuse it: import json json.loads("1.000") 1.0 json.loads("1 .000") Traceback (most recent call las

Re: parseJSON bug

2013-08-08 Thread anonymous
On Thursday, 8 August 2013 at 12:38:39 UTC, SteveGuo wrote: I think bug reports should be here http://forum.dlang.org/group/digitalmars.D.bugs Actually, that only shows the activity on the bug tracker. New issues should be reported here: http://d.puremagic.com/issues

Re: parseJSON bug

2013-08-08 Thread khurshid
On Thursday, 8 August 2013 at 12:38:39 UTC, SteveGuo wrote: On Thursday, 8 August 2013 at 12:08:00 UTC, khurshid wrote: std.json parseJSON has a bug, // leading whitespaces auto json = parseJSON("1 .000"); -- should throws, but it's

Re: parseJSON bug

2013-08-08 Thread David
Am 08.08.2013 14:54, schrieb bearophile: > Tofu Ninja: > >> I don't think this is a bug, the json spec seems to indicate that this >> is valid. > > > The JSON decode of the Python2.6.6 standard library seems to refuse it: > import json json.loads("1.000") > 1.0 json.loads("1

Re: parseJSON bug

2013-08-08 Thread bearophile
David: If we follow an existing implementation, we should follow JavaScript In my opinion we should follow the formal JSON grammar. Bye, bearophile

Re: parseJSON bug

2013-08-08 Thread Dicebot
On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: In my opinion we should follow the formal JSON grammar. This. Anyone who wants JavaScript behavior can use own third-party library bust standard library must behave according to published standards and specifications.

Re: parseJSON bug

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 03:49:15PM +0200, bearophile wrote: > David: > > >If we follow an existing implementation, we should follow > >JavaScript > > In my opinion we should follow the formal JSON grammar. [...] +1. T -- Recently, our IT department hired a bug-fix engineer. He used to work f

Re: Future of string lambda functions/string predicate functions

2013-08-08 Thread H. S. Teoh
On Tue, Aug 06, 2013 at 11:05:56AM +0200, Jakob Ovrum wrote: > In Phobos pull request #1453 (Implement chunkBy.)[1], the topic of > string lambda functions has again cropped up. I think we should > clearly decide on some things regarding them. Questions such as; are > they a worthwhile alternative

Re: parseJSON bug

2013-08-08 Thread Wyatt
On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: In my opinion we should follow the formal JSON grammar. This. Anyone who wants JavaScript behavior can use own third-party library bust standard library must behave accordi

Re: parseJSON bug

2013-08-08 Thread Tyler Jameson Little
On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: In my opinion we should follow the formal JSON grammar. This. Anyone who wants JavaScript behavior can use own third-party library bust standard library must behave accordi

Re: std.array string.split("") bug

2013-08-08 Thread Tyler Jameson Little
On Wednesday, 7 August 2013 at 19:10:11 UTC, Borislav Kosharov wrote: Something strange happens when I do this: unittest { import std.array, std.string; string s = "test"; //assert(s.toUpper.split("").join("-") == "T-E-S-T"); //"Memory allocation failed" //[Finished in 26.5s]

Re: std.json parsing real numbers.

2013-08-08 Thread Tyler Jameson Little
On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote: I just check std.json for parsing real numbers. import std.json; import std.stdio: writeln; int main() { auto json = parseJSON("1.24E +1"); writeln(toJSON(&json)); return 0; } and output: 12

Re: ctRegex! vs regex error

2013-08-08 Thread Tyler Jameson Little
On Wednesday, 7 August 2013 at 22:36:39 UTC, Milvakili wrote: Hi, I can compile void main(){ auto myRegx = regex(`(?!test)`); } however can not compile this one void main(){ auto myRegx = ctRegex!(`(?!test)`); } code sample:http://dpaste.dzfl.pl/d38926f4 and get the following error: snip..

Re: parseJSON bug

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: In my opinion we should follow the formal JSON grammar. This. Anyone who wants JavaScript behavior can use own third-party library bust standard library must behave accordi

Re: parseJSON bug

2013-08-08 Thread David
> The real question is, is this worth fixing before std.serialize makes it > in? There will likely be other bugs once/if that's accepted. I tried > extending std.json in the past with static reflection, but that didn't > make it in for this very reason. Yep no one seems to care about std.json.

Re: std.json parsing real numbers.

2013-08-08 Thread Borislav Kosharov
On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: On Thursday, 8 August 2013 at 10:11:07 UTC, MrSmith wrote: On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote: I just check std.json for parsing real numbers. import std.json; import std.stdio: writeln; int main() {

Re: parseJSON bug

2013-08-08 Thread Borislav Kosharov
On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: In my opinion we should follow the formal JSON grammar. This. Anyone who wants JavaScript behavior can use own third-party library bust standard library must behave accordi

Re: DLang MongoDB Drive ??

2013-08-08 Thread Batuhan Göksu
Thank you friends, for now postponed the event MongoDB.

Re: ctRegex! vs regex error

2013-08-08 Thread Dmitry Olshansky
08-Aug-2013 02:36, Milvakili пишет: Hi, I can compile void main(){ auto myRegx = regex(`(?!test)`); } however can not compile this one void main(){ auto myRegx = ctRegex!(`(?!test)`); } Well, it should have said "sorry, unsupported yet" or something to that extent. It's a bug regardless as

Re: DLang MongoDB Drive ??

2013-08-08 Thread Nick Sabalausky
On Thu, 08 Aug 2013 12:05:10 +0200 "Batuhan Göksu" wrote: > thanks > > but how can I solve using vibe.d > > I do not want to use your own server that hosts the very mass of > a framework vibe.d > > How do I use the driver for MongoDB So the c You don't need to use all of vibe.d. Vibe.d is ve

Re: parseJSON bug

2013-08-08 Thread Nick Sabalausky
On Thu, 08 Aug 2013 17:17:38 +0200 "Tofu Ninja" wrote: > On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: > > On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: > >> In my opinion we should follow the formal JSON grammar. > > > > This. Anyone who wants JavaScript behavior can

Re: parseJSON bug

2013-08-08 Thread Wyatt
On Thursday, 8 August 2013 at 15:17:40 UTC, Tofu Ninja wrote: A formal grammar can be found here starting on page 202 but I don't know enough about grammars to be able to interpret it. http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf Im starting to become less sure if i

Re: std.json parsing real numbers.

2013-08-08 Thread Nick Sabalausky
On Thu, 08 Aug 2013 17:20:16 +0200 "Borislav Kosharov" wrote: > On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: > > On Thursday, 8 August 2013 at 10:11:07 UTC, MrSmith wrote: > >> On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote: > >>> > >>> I just check std.json for parsin

Re: parseJSON bug

2013-08-08 Thread Jonathan M Davis
On Thursday, August 08, 2013 14:38:34 SteveGuo wrote: > I think bug reports should be here > http://forum.dlang.org/group/digitalmars.D.bugs Please, never, never post to that list. It shouldn't even accept posts to it (and it may not anymore, since I haven't seen anyone post to it for a while).

Re: parseJSON bug

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 11:45:19AM -0400, Nick Sabalausky wrote: > On Thu, 08 Aug 2013 17:17:38 +0200 > "Tofu Ninja" wrote: > > > On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: > > > On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: > > >> In my opinion we should follow th

Re: parseJSON bug

2013-08-08 Thread Lemonfiend
On Thursday, 8 August 2013 at 15:15:44 UTC, David wrote: The real question is, is this worth fixing before std.serialize makes it in? There will likely be other bugs once/if that's accepted. I tried extending std.json in the past with static reflection, but that didn't make it in for this very

Re: std.json parsing real numbers.

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 05:20:16PM +0200, Borislav Kosharov wrote: > On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: > >On Thursday, 8 August 2013 at 10:11:07 UTC, MrSmith wrote: > >>On Thursday, 8 August 2013 at 08:04:49 UTC, khurshid wrote: > >>> > >>>I just check std.json for parsin

Re: Future of string lambda functions/string predicate functions

2013-08-08 Thread Jonathan M Davis
On Thursday, August 08, 2013 07:29:56 H. S. Teoh wrote: > Seems this thread has quietened down. So, what is the conclusion? Seems > like almost everyone concedes that silent deprecation is the way to go. > We still support string lambdas in the background, but in public docs we > promote the use of

Re: DLang MongoDB Drive ??

2013-08-08 Thread Ali Çehreli
On 08/08/2013 03:49 AM, John Colvin wrote: > On Thursday, 8 August 2013 at 10:05:14 UTC, Batuhan Göksu wrote: > What languages are you fluent in? Batuhan Göksu is a Turkish name! :) Batuhan, the Turkish D community is at http://ddili.org/forum Ali

Re: Future of string lambda functions/string predicate functions

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 09:52:05AM -0700, Jonathan M Davis wrote: > On Thursday, August 08, 2013 07:29:56 H. S. Teoh wrote: > > Seems this thread has quietened down. So, what is the conclusion? > > Seems like almost everyone concedes that silent deprecation is the > > way to go. We still support s

std.algorithm unittest OOM & package.d

2013-08-08 Thread H. S. Teoh
After the latest Phobos update, I can't run the Phobos unittests anymore; std.algorithm runs out of memory. What do you guys think? Since we have package.d support now, I think it's about time we split std.algorithm up into smaller pieces. As a first stab at it, we could split it up according to

UFCS for templates

2013-08-08 Thread JS
Can we have UFCS for templates? e.g., T New(T, A...)(A args) { } T t = T.New(args); Note, in this case, the type parameter is substituted.

Re: parseJSON bug

2013-08-08 Thread David
Am 08.08.2013 18:26, schrieb Lemonfiend: > On Thursday, 8 August 2013 at 15:15:44 UTC, David wrote: >>> The real question is, is this worth fixing before std.serialize makes it >>> in? There will likely be other bugs once/if that's accepted. I tried >>> extending std.json in the past with static re

Re: parseJSON bug

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 15:45:22 UTC, Nick Sabalausky wrote: On Thu, 08 Aug 2013 17:17:38 +0200 "Tofu Ninja" wrote: On Thursday, 8 August 2013 at 13:56:15 UTC, Dicebot wrote: > On Thursday, 8 August 2013 at 13:49:22 UTC, bearophile wrote: >> In my opinion we should follow the formal JSON

Re: UFCS for templates

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 17:35:02 UTC, JS wrote: Can we have UFCS for templates? e.g., T New(T, A...)(A args) { } T t = T.New(args); Note, in this case, the type parameter is substituted. That would be nice things to have, it would allow the parse!type(...) to be turned into type.pa

Re: UFCS for templates

2013-08-08 Thread Dicebot
On Thursday, 8 August 2013 at 17:35:02 UTC, JS wrote: Can we have UFCS for templates? e.g., T New(T, A...)(A args) { } T t = T.New(args); Note, in this case, the type parameter is substituted. As always, providing motivating use case and advantage/cost comparison is usual requirement to

Re: UFCS for templates

2013-08-08 Thread Jonathan M Davis
On Thursday, August 08, 2013 19:35:01 JS wrote: > Can we have UFCS for templates? > > e.g., > > T New(T, A...)(A args) { } > > > T t = T.New(args); > > > Note, in this case, the type parameter is substituted. And how is the compiler supposed to know whether T is being passed as a template a

Re: parseJSON bug

2013-08-08 Thread Wyatt
On Thursday, 8 August 2013 at 17:37:37 UTC, Tofu Ninja wrote: Just out of curiosity what is this sort of grammar format called or what would one want to try to look up to understand it? I just have seen it around a few times and never really knew what it was about other than some how it descr

Re: parseJSON bug

2013-08-08 Thread Adam D. Ruppe
On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: I made a pull request improving the API a few weeks ago, no one seems to really care. Phobos needs a new dictator.

Re: parseJSON bug

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 08:24:19PM +0200, Adam D. Ruppe wrote: > On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: > >I made a pull request improving the API a few weeks ago, > >no one seems to really care. > > Phobos needs a new dictator. Or rather, Phobos needs more reviewers/committers.

Re: parseJSON bug

2013-08-08 Thread David
Am 08.08.2013 20:24, schrieb Adam D. Ruppe: > On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: >> I made a pull request improving the API a few weeks ago, >> no one seems to really care. > > Phobos needs a new dictator. Either that, or I will soon start my own standard lib and stop caring

Re: std.json parsing real numbers.

2013-08-08 Thread Borislav Kosharov
On Thursday, 8 August 2013 at 16:05:56 UTC, Nick Sabalausky wrote: On Thu, 08 Aug 2013 17:20:16 +0200 "Borislav Kosharov" wrote: On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: > On Thursday, 8 August 2013 at 10:11:07 UTC, MrSmith wrote: >> On Thursday, 8 August 2013 at 08:04:49 UT

Re: std.json parsing real numbers.

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 08:46:15PM +0200, Borislav Kosharov wrote: > On Thursday, 8 August 2013 at 16:05:56 UTC, Nick Sabalausky wrote: > >On Thu, 08 Aug 2013 17:20:16 +0200 > >"Borislav Kosharov" wrote: > > > >>On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: > >>> On Thursday, 8 Augus

Re: std.json parsing real numbers.

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 18:46:17 UTC, Borislav Kosharov wrote: On Thursday, 8 August 2013 at 16:05:56 UTC, Nick Sabalausky wrote: On Thu, 08 Aug 2013 17:20:16 +0200 "Borislav Kosharov" wrote: On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: > On Thursday, 8 August 2013 at 10:

Re: parseJSON bug

2013-08-08 Thread Craig Dillabaugh
On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: Am 08.08.2013 20:24, schrieb Adam D. Ruppe: On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: I made a pull request improving the API a few weeks ago, no one seems to really care. Phobos needs a new dictator. Either that, or I

Multiple alias for multiple functions?

2013-08-08 Thread Borislav Kosharov
I want to make a simple Vector struct class: struct Vector { alias _data this; alias data!0 x, width; alias data!1 y, height; private: @property float data(int i)() { return _data[i]; } @property void data(int i)(float value) { _data[i] = value; }

Re: parseJSON bug

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: Am 08.08.2013 20:24, schrieb Adam D. Ruppe: On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: I made a pull request improving the API a few weeks ago, no one seems to really care. Phobos needs a new dictator. Either that, or I

Re: Multiple alias for multiple functions?

2013-08-08 Thread anonymous
On Thursday, 8 August 2013 at 20:14:58 UTC, Borislav Kosharov wrote: I want to make a simple Vector struct class: struct Vector { alias _data this; alias data!0 x, width; alias data!1 y, height; private: @property float data(int i)() { return _data[i]; } @proper

Re: parseJSON bug

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 10:15:28PM +0200, Tofu Ninja wrote: > On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: > >Am 08.08.2013 20:24, schrieb Adam D. Ruppe: > >>On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: > >>>I made a pull request improving the API a few weeks ago, > >>>no on

Re: parseJSON bug

2013-08-08 Thread David
Am 08.08.2013 22:15, schrieb Tofu Ninja: > On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: >> Am 08.08.2013 20:24, schrieb Adam D. Ruppe: >>> On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: I made a pull request improving the API a few weeks ago, no one seems to really c

Re: std.json parsing real numbers.

2013-08-08 Thread Ali Çehreli
On 08/08/2013 11:46 AM, Borislav Kosharov wrote: >>> > I wrote not a "1.24E+1", a "1 .24E +1" with leading > spaces. >>> >>> Well what should it be if it's not 12.4? >> >> A syntax error. > > I don't think this would cause any problems. It would just throw syntax > error because there i

Re: parseJSON bug

2013-08-08 Thread H. S. Teoh
On Thu, Aug 08, 2013 at 11:40:45PM +0200, David wrote: > Am 08.08.2013 22:15, schrieb Tofu Ninja: [...] > > It is really bad that people are actually talking about starting > > there own standard lib, I wasn't around for the whole phobos vs > > tango thing but from what I hear, it wasn't pretty. If

Re: parseJSON bug

2013-08-08 Thread Johannes Pfau
Am Thu, 08 Aug 2013 22:15:28 +0200 schrieb "Tofu Ninja" : > On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: > > Am 08.08.2013 20:24, schrieb Adam D. Ruppe: > >> On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: > >>> I made a pull request improving the API a few weeks ago, > >>> no

Re: parseJSON bug

2013-08-08 Thread Tofu Ninja
On Thursday, 8 August 2013 at 21:40:46 UTC, David wrote: Am 08.08.2013 22:15, schrieb Tofu Ninja: On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: Am 08.08.2013 20:24, schrieb Adam D. Ruppe: On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: I made a pull request improving the A

Re: parseJSON bug

2013-08-08 Thread Adam D. Ruppe
On Thursday, 8 August 2013 at 22:19:28 UTC, Johannes Pfau wrote: I'd like to explain the special issue we have with std.json - as far as I understand it: *snip* This actually brings up the main beefs I have with the phobos dev process: 1) your requirements list should be prominently document

Re: parseJSON bug

2013-08-08 Thread David
Am 09.08.2013 00:19, schrieb Johannes Pfau: > Am Thu, 08 Aug 2013 22:15:28 +0200 > schrieb "Tofu Ninja" : > >> On Thursday, 8 August 2013 at 18:31:52 UTC, David wrote: >>> Am 08.08.2013 20:24, schrieb Adam D. Ruppe: On Thursday, 8 August 2013 at 17:33:38 UTC, David wrote: > I made a pull

Re: std.json parsing real numbers.

2013-08-08 Thread Nick Sabalausky
On Thu, 08 Aug 2013 20:46:15 +0200 "Borislav Kosharov" wrote: > On Thursday, 8 August 2013 at 16:05:56 UTC, Nick Sabalausky wrote: > > On Thu, 08 Aug 2013 17:20:16 +0200 > > "Borislav Kosharov" wrote: > > > >> On Thursday, 8 August 2013 at 10:13:51 UTC, khurshid wrote: > >> > > >> > I wrote not

Re: UFCS for templates

2013-08-08 Thread JS
On Thursday, 8 August 2013 at 17:55:04 UTC, Dicebot wrote: On Thursday, 8 August 2013 at 17:35:02 UTC, JS wrote: Can we have UFCS for templates? e.g., T New(T, A...)(A args) { } T t = T.New(args); Note, in this case, the type parameter is substituted. As always, providing motivating use

Anything up for formal review?

2013-08-08 Thread Tyler Jameson Little
According to the review queue, there there are 5 items that are currently ready for review. There was even a thread a while back about starting another formal review, where both Jacob Carlborg and Brian Schott said they're ready for review: http://forum.dlang.org/thread/gjonxudcdiwrlkgww...@for

Re: UFCS for templates

2013-08-08 Thread Mike Parker
On Friday, 9 August 2013 at 00:34:31 UTC, JS wrote: Are you not smart enough to come up with use cases yourself? This is not some extremely rare thing that might be used 1 in 10^100. It's not his proposal. The burden of proof is on you.

Re: Anything up for formal review?

2013-08-08 Thread Kapps
On Friday, 9 August 2013 at 00:53:18 UTC, Tyler Jameson Little wrote: According to the review queue, there there are 5 items that are currently ready for review. There was even a thread a while back about starting another formal review, where both Jacob Carlborg and Brian Schott said they're re

Re: UFCS for templates

2013-08-08 Thread JS
On Friday, 9 August 2013 at 00:57:21 UTC, Mike Parker wrote: On Friday, 9 August 2013 at 00:34:31 UTC, JS wrote: Are you not smart enough to come up with use cases yourself? This is not some extremely rare thing that might be used 1 in 10^100. It's not his proposal. The burden of proof is on

A suggestion on keyword for_each

2013-08-08 Thread SteveGuo
I suggest that change keyword *for_each* to *for* since *for* is clear enough and less letters, like C++11 does.

Re: UFCS for templates

2013-08-08 Thread barryharris
So instead of: T t = New!T(args) you would like: T t = T.New(args) Is that it?

Re: UFCS for templates

2013-08-08 Thread Jonathan M Davis
On Friday, August 09, 2013 05:29:05 JS wrote: > On Friday, 9 August 2013 at 00:57:21 UTC, Mike Parker wrote: > > On Friday, 9 August 2013 at 00:34:31 UTC, JS wrote: > >> Are you not smart enough to come up with use cases yourself? > >> This is not some extremely rare thing that might be used 1 in >

Re: UFCS for templates

2013-08-08 Thread barryharris
On Friday, 9 August 2013 at 03:41:56 UTC, barryharris wrote: So instead of: T t = New!T(args) you would like: T t = T.New(args) Is that it? Never mind, I read your original post again... Note, in this case, the type parameter is substituted.

Re: UFCS for templates

2013-08-08 Thread barryharris
On Thursday, 8 August 2013 at 17:35:02 UTC, JS wrote: Can we have UFCS for templates? e.g., T New(T, A...)(A args) { } T t = T.New(args); Note, in this case, the type parameter is substituted. Actually, what is wrong with New!T(args)? This works fine for me: T t = New!T(args) ?? templat

Re: UFCS for templates

2013-08-08 Thread barryharris
auto test2 = New!AnotherTest("test2", 20); oops, should read: auto test2 = New!AnotherTest(20); -1 for me anyway for the following reason: A.function(args)// I know A is a function value parameter function!A(args)// I know A is a template type parameter functi

Request for editor scripting help

2013-08-08 Thread Brian Schott
I've been making some progress on a project called DCD[1], which is D's answer to Go's Gocode[2]. It's a command-line client/server autocompletion program for D built off the same lexer/parser/ast code that powers DScanner. I'd like to get some help writing integration scripts for the editors

Re: Anything up for formal review?

2013-08-08 Thread Jesse Phillips
On Friday, 9 August 2013 at 00:53:18 UTC, Tyler Jameson Little wrote: I havn't seen anything in this mailing list (except the above and one by Walter Bright) for a while, and I haven't seen any pull requests for any of the items in the review queue. I haven't come back to std.serialize since t

Re: DLang MongoDB Drive ??

2013-08-08 Thread Daniel Kozak
On Thursday, 8 August 2013 at 06:53:12 UTC, Batuhan Göksu wrote: d to make MongoDB database connection data extraction, data, how do I do want to add friends would appreciate if you help me in this regard. I have my own D mongodb driver, which depends only on D and phobos, but it is not finis