Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

oct challenge !

Name: Anonymous 2013-02-17 5:33

implement a -flexible- interpreter ? ( being able to modify 'target' code while running? (lispy =) )

Name: Anonymous 2013-02-17 23:46

>>1
"modifying running code" is just a matter of calling eval.

>>7
Sorry. I dont know what are "dynamic loops" and I'm messing with Symta. So here is how new Symta:

point X Y = <x = X
            ;y = Y
            ;metric = X^2+Y^2 sqrt
            ;`+` P = point P.x+X P.y+Y
            >


compares to C/C++:

class point {
private:
  int X;
  int Y;
public:
  point (int XX, int YY) { X=XX; Y=YY; }
  int x () { return X; }
  int y () { return Y; }
  metric () { return sqrt(X^2+Y^2); }
  point operator + (P) { return pow(P.x(),2)+pow(P.y(),2); }
};


and these lowercase letters would be now just syms, so <X.odd=say X is odd; X.even=say X is even> would work

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List