Trying to debug the webserver .. I wrote this;

////
macro fun dbg(x) = { fprint (cerr,x); };

proc forever {
  var s: socket_t;
  accept(listener, &s);  // blocking
  dbg q"got connection $s\n";  // error check here

///...

Interpolation plus typeclass Str .. C++ performance,
Python/Perl simplicity. And safe (statically typed).

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to