Hello World Example Inaccurate About Static Method not Working on Instance

1 view
Skip to first unread message

pnewhook

unread,
Nov 27, 2009, 11:44:06 PM11/27/09
to Persevere
This has been bugging me for a while and I thought I'd bring it up.
Page three of the hello world example on the site states that after
changing the hello function from being a method to a static function
you shouldn't be able to call hello on the object, d in the example.
However, I can still call d.hello(). If i change the method, d.hello
(); doesn't update but Data.hello() does.

Not a huge deal, just a little confusing for beginners.
Reply all
Reply to author
Forward
0 new messages