null.bmx 226 B

12345678910111213
  1. Rem
  2. Null is a BlitzMax Constant representing an empty Object reference.
  3. End Rem
  4. Type mytype
  5. Field atypevariable
  6. End Type
  7. Global a:mytype
  8. if a=null Print "a is uninitialized"
  9. a=new mytype
  10. if a<>null Print "a is initialized"