Mercurial > repos > tabletprog
view samples/reflect.tp @ 333:577406b25f89
Added binding for SDL_SetTextureColorMod and SDL_GetTextureColorMod and updated the Freetype sample to use it for setting the color of text
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 29 Mar 2015 09:43:24 -0700 |
parents | b74956a2196f |
children |
line wrap: on
line source
#{ main <- { o <- #{ foo <- 42 bar <- 39 doStuff <- :blah { foo <- bar * blah foo } qux <- { 1337 } + <- :right { foo + right } } print: (string: (object does: o understand?: "+")) . "\n" print: (string: (object does: o understand?: "foobar")) . "\n" print: (string: (object sendMessage: "qux" to: o)) . "\n" print: "Messages understood:\n" foreach: (object understoodBy: o) :idx el{ print: el . "\n" } print: "\nProperties of:\n" foreach: (object propertiesOf: o) :idx el{ print: el . "\n" } 0 } }