Non-Database Format

Luke-Jr <[email protected]> Tue, 2 Dec 2003 22:35:20 +0000
Newsgroups gmane.comp.lang.moo.general
Message-ID <[email protected]>
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What does everyone think MOO should use for storing programs when it does n=
ot=20
use a database (human readable)?
My own opinion is to have simply something like this:
	/* Example of a MOO program w/o a database */
	myobj=3Dcreate(#-1);
	add_verb(myobj, "main");
	.program myobj:main
	player:tell("hello world. My OID is ",#myobj);
	.
	return myobj;
Basicly, the file would be executed/interpreted and then the verb 'main' on=
=20
the returned object would be run. Alternatively, one could simply include=20
"myobj:main();" at the end instead of using a return value.
Any other ideas for this?
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/zROsZl/BHdU+lYMRApOPAJ9vwVcJv52KADHZn5OQcloUIZEZrACfc3sg
Zmvdh9G9zOg21h2x9lZ7lMQ=3D
=3DlzJs
=2D----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8