Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Class instance and delegation

Last post 01-15-2010, 5:17 AM by hdh. 0 replies.
Sort Posts: Previous Next
  •  01-15-2010, 5:17 AM 3614

    Class instance and delegation

    I have read the document and it says only table and userdata can set delegate to them, but when I browse source code I found SQInstance is also derived from SQDelegable, so can I setdelegate for class instance?

    Because I want implement something like "State Design Pattern" to my object model, I think if I can set a delegation to an instance is very useful.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems