www.digitalmars.com         C & C++   DMDScript  

D - OO Shapes Example

reply Mark Evans <Mark_member pathlink.com> writes:
http://www.angelfire.com/tx4/cus/shapes/index.html
Feb 18 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Mark Evans" <Mark_member pathlink.com> wrote in message
news:b2v7rs$1t6d$1 digitaldaemon.com...
 http://www.angelfire.com/tx4/cus/shapes/index.html

I sent them a D version.
Feb 28 2003
parent "Mike Wynn" <mike.wynn l8night.co.uk> writes:
I love http://www.angelfire.com/tx4/cus/shapes/brain.html
although its a bit verbose,
as the only op you realy need is *a = *b = *a - *b; as long as the PC is
addressable
or two instructions
*locn = acc = acc - *locn; and if (acc==0)goto wherever;
only the latter may be possible in Java or CLR bytecode;

(if you confused about logical [bitwise ops] just remember a+a = 2a ( a -
(0 - a)) and enough of those leaves you with the lsb in the msb)


"Walter" <walter digitalmars.com> wrote in message
news:b3osra$e5h$1 digitaldaemon.com...
 "Mark Evans" <Mark_member pathlink.com> wrote in message
 news:b2v7rs$1t6d$1 digitaldaemon.com...
 http://www.angelfire.com/tx4/cus/shapes/index.html

I sent them a D version.

Feb 28 2003