www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - We simply must implement this for D to stay competitive

reply Walter Bright <newshound2 digitalmars.com> writes:
https://github.com/rollbear/basicpp
Jun 20 2015
next sibling parent "Baz" <bb.temp gmx.com> writes:
On Saturday, 20 June 2015 at 22:38:30 UTC, Walter Bright wrote:
 https://github.com/rollbear/basicpp
This leads to this classic, the original Bourne shell ALGO-izer macros: http://minnie.tuhs.org/cgi-bin/utree.pl?file=2.11BSD/src/bin/sh/mac.h
Jun 20 2015
prev sibling next sibling parent "Abdulhaq" <alynch4047 gmail.com> writes:
On Saturday, 20 June 2015 at 22:38:30 UTC, Walter Bright wrote:
 https://github.com/rollbear/basicpp
I had a Video Genie in my youth too, I loved it :-)
Jun 21 2015
prev sibling next sibling parent reply Iain Buclaw via Digitalmars-d <digitalmars-d puremagic.com> writes:
On 21 June 2015 at 00:38, Walter Bright via Digitalmars-d <
digitalmars-d puremagic.com> wrote:

 https://github.com/rollbear/basicpp
Fun fact using macros: #define SIX 1+5 #define NINE 8+1 printf("What do you get if you multiply six by nine? %d\n", SIX * NINE);
Jun 21 2015
parent "Dennis Ritchie" <dennis.ritchie mail.ru> writes:
On Sunday, 21 June 2015 at 10:26:03 UTC, Iain Buclaw wrote:
 Fun fact using macros:

 #define SIX 1+5
 #define NINE 8+1

 printf("What do you get if you multiply six by nine?  %d\n", 
 SIX * NINE);
Even I fell for this trick :) #define square(x) x * x square(5 + 1);
Jun 21 2015
prev sibling next sibling parent "Sean Campbell" <sycam.inc gmail.com> writes:
On Saturday, 20 June 2015 at 22:38:30 UTC, Walter Bright wrote:
 https://github.com/rollbear/basicpp
https://gist.github.com/jcromartie/238308
Jun 21 2015
prev sibling parent ketmar <ketmar ketmar.no-ip.org> writes:
On Sat, 20 Jun 2015 15:38:29 -0700, Walter Bright wrote:

 https://github.com/rollbear/basicpp
this is doable with Adam's "jsvar.d" and compile-time parser. parser=20 needs to be written, though. i did that once, but found BASIC too=20 complicated and retreated to D.=
Jun 23 2015