Re:Hello Ruby – Almost there
by cremno on Monday August 03, 2015 @09:19AM
(#9995523)
Accessing undefined/unitialized global or instance variables (like: @i) is not an error and nil will be returned. With -w a warning will be emitted. The weird class variables must be initialized. Local variables (lexically scoped) must be defined and are default-initialized to nil. (Global and class variables are usually not used.)
[ Parent
| on HN ]
There are no comments on this comment yet.