Re: Proposal for a Rosettacode task

2013-10-19 Thread bearophile
Daniel Davidson: I get following errors when trying to run: STDERR| asciiart.d(17): Error: pure function 'commitCurrent' cannot call impure function 'text' STDERR| asciiart.d(17): Error: safe function 'asciiart.makeStructFromDiagram.commitCurrent' cannot call system function 'std.conv.text!(

Re: Proposal for a Rosettacode task

2013-10-19 Thread Daniel Davidson
On Saturday, 19 October 2013 at 10:58:11 UTC, bearophile wrote: Adam D. Ruppe: sure. I didn't format it but if you convert my tabs to spaces and maybe break up some long lines it should be good. Good, I have reformatted the code (I have chosen a narrow 72/73 line width for the code in that s

Re: Proposal for a Rosettacode task

2013-10-19 Thread bearophile
Adam D. Ruppe: sure. I didn't format it but if you convert my tabs to spaces and maybe break up some long lines it should be good. Good, I have reformatted the code (I have chosen a narrow 72/73 line width for the code in that site, to see it well on smaller screens or larger fonts), and I h

Re: Proposal for a Rosettacode task

2013-10-18 Thread Adam D. Ruppe
On Saturday, 19 October 2013 at 03:33:12 UTC, bearophile wrote: Are you willing for your code to be put in the Rosettacode site? sure. I didn't format it but if you convert my tabs to spaces and maybe break up some long lines it should be good. (I use awfully long lines when doing code gene

Re: Proposal for a Rosettacode task

2013-10-18 Thread bearophile
Adam D. Ruppe: I implemented one solution: http://arsdnet.net/dcode/asciiarttable.d Tomorrow I'll take a better look at it. Are you willing for your code to be put in the Rosettacode site? Bye, bearophile

Re: Proposal for a Rosettacode task

2013-10-18 Thread Adam D. Ruppe
On Saturday, 19 October 2013 at 00:19:34 UTC, bearophile wrote: A D solution is welcome. I implemented one solution: http://arsdnet.net/dcode/asciiarttable.d My parser is kinda minimal, it just counts the bits and doesn't strictly validate, though there are some asserts there. It also suppo

Proposal for a Rosettacode task

2013-10-18 Thread bearophile
I keep most discussions about Rosettacode tasks in the D.learn newsgroup, but perhaps this time this is of interest of more people. I have created an empty Task in that site that I think is particularly fit for D compile-time evaluation and code generation (it's probably also fit for Lisp mac