chrishowie.com

More Affe hackery

by Chris on Jul.10, 2007, under C#

Today I added:

  • Variable persistence. If a field of type ScriptState is tagged [AffeBound] on the host class, it will be used to store the state of all of the variables local to the script. If no such field is found, no state preserving IL will be emitted.
  • Bound methods can now return anything, but only methods returning float can be used in expressions. Others can be used in call statements.
  • The return keyword is now supported. In the case of a state-preserved script, it will cause a jump to the code that stores variable state.

The library is also in my public Subversion repository: svn co https://layla.chrishowie.com/svn/Cdh.Affe.

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact me so I can take care of it!

Links

Links to friends' blogs, and a few other sites of mine.