assert( top( o-------o
|L \
| L \
| o-------o
| ! !
! ! !
o | !
L | !
L| !
o-------o ) == ( o-------o
| !
! !
o-------o ) );
Multi-Dimensional Analog Literals
assert( top( o-------o
|L \
| L \
| o-------o
| ! !
! ! !
o | !
L | !
L| !
o-------o ) == ( o-------o
| !
! !
o-------o ) );
2 comments:
Of course, you can accomplish the same thing in Lisp as a trivial macro "shape"
(assert (= (top (shape ...etc...)) (shape ...etc...)))
It may be legal, but it's not complete:
$ make nononono
g++ nononono.cpp -o nononono
nononono.cpp:1: error: expected constructor, destructor, or type conversion before '(' token
nononono.cpp:1: error: expected `,' or `;' before '(' token
make: *** [nononono] Error 1
But you probably already knew that.
Post a Comment