Sleep 2.1-b23 released!

1 view
Skip to first unread message

Raphael Mudge

unread,
Apr 23, 2008, 2:15:38 AM4/23/08
to Sleep Developers
Hello,
Sleep 2.1-b23 has been released. I made an API change. I want to
emphasize this. An API has changed. As in any code you wrote that
has a class that implements sleep.interfaces.Loadable will require a
small change.

For some reason, many years ago, I had this bright idea to make the
return type of the scriptLoaded and scriptUnloaded methods boolean. I
can't remember what my grand vision was for this boolean return
value.

I finally decided to make this void. I had to go through a number of
classes to make jIRCii compile with the latest Sleep. Overall the
transition was pretty painless. Replace boolean with void and get rid
of the return true; or return false; statement at the end of the
method.

I contacted Andreas about this change and hopefully we'll see an
updated Slumber posted soon as well.

This release adds a few command line options for printing time/profile
information for a script post execution. Made a change to allow the
ordered hash miss policy mechanism more flexibility (key is not
converted to a string before passing to the policy closure).

Also added basic cycle detection to the SleepUtils.describe method.
If a hash or array references itself then a ... will appear rather
than causing the interpreter to crash with a StackOverFlow exception.
Deeper cycles are still not resolved.

I think that about sums up the release. I've also done a lot of work
on the Sleep Manual and an update is available at http://sleep.dashnine.org/manual/

As usual, you can download the latest Sleep at http://sleep.dashnine.org/download.html

Enjoy the beta.

-- Raphael
Reply all
Reply to author
Forward
0 new messages