Jos Backus
8/29/2008 6:31:00 PM
lizzy:~% cat n
Math.sqrt(4)
include Math
sqrt(4)
require 'rubygems'
require 'ncurses'
Ncurses.initscr
include Ncurses
initscr
lizzy:~% ruby n 2> err
lizzy:~% cat err
n:12: undefined local variable or method `initscr' for main:Object (NameError)
%
lizzy:~%
Why does including Ncurses not have the same effect as including Math?
--
Jos Backus
jos at catnook.com