Andreas Davour <[EMAIL PROTECTED]> writes: > Stop a a second! > > Are we really discussing if you should somehow have a safety net for > when someone calls SDL functions before calling sdl-init? That's the > programmer's responsibility and part of the sdl-lib. You can only have > so much safety. Or am I totally misunderstanding what you'e talking > about?
Not so much a safety net as a slap upside the head. Verifying that the SDL library is initialized when a SURFACE is created can be accomplished with the following code change: (defmethod initialize-instance :around ((surface sdl-surface) &key) (unless (initialized-sub-systems-p) (error "ERROR: The SDL library must be initialized prior to use.")) (call-next-method)) - Luke _______________________________________________ application-builder mailing list application-builder@lispniks.com http://www.lispniks.com/mailman/listinfo/application-builder