08-08-2011, 10:42 PM,
|
|||||
|
|||||
RE: Sonntag MVC without strings or name
Do you mean we should not use strings as key things?
Putting all strings into one place as in your example might be a good practice, and as you know Sonntag doesn't restrict that way. Unfortunately 'define-screen-command' doesn't take string name (but identifier). Instead, you can write as following to use string: Code: {define-class FooScreen {inherits {Screen-of FooGraphic}} This is not proposed way of Sonntag but another way that will work. As to event bus messages, send-message takes 'any' value (not just only string) so it is recommended you to use specific object as a message. String messages in Umemura's example are probably for the sake of simple to describe how to use it. Code: || declare message object Anyway, Sonntag's screen command stuff has much room for improvement so any suggestions are welcome. |
|||||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Sonntag MVC without strings or name - by RobertShiplett - 08-05-2011, 06:15 AM
RE: Sonntag MVC without strings or name - by RobertShiplett - 08-05-2011, 08:55 PM
RE: Sonntag MVC without strings or name - by fukuta - 08-08-2011, 10:42 PM
RE: Sonntag MVC without strings or name - by RobertShiplett - 08-09-2011, 01:12 AM
|
Possibly Related Threads... | |||||
Thread | Author | Replies | Views | Last Post | |
Sonntag で別画面(Screen)のイベントを呼ぶ | umemura | 2 | 4,048 |
08-04-2011, 02:47 AM Last Post: RobertShiplett |
|
Sonntag でCommand を呼び出す | umemura | 4 | 4,128 |
08-02-2011, 09:24 AM Last Post: fukuta |
Users browsing this thread:
2 Guest(s)
2 Guest(s)