On Wed, 2004-08-11 at 13:11, John Beppu wrote: > While experimenting with SDL::App the other day, I noticed that > the constructor returns a blessed scalar. > > Questions: > > - What does the dereferenced scalar contain?
It seems to me that all the objects that the SDL Perl modules return are blessed references to scalars which are literally the pointers to the SDL structs in memory. > - Is that value likely to change during the life of the object? I have not encountered any code that changes the value of the scalar in the reference returned by SDL::App::new, but some of the methods for SDL::Surfaces and in SDL::Tool::Graphic create new struct SDL_Surface values through the SDL library and reassign the referenced scalar to the new pointer. -- Andy Bakun <[EMAIL PROTECTED]>
