# this needs the error-ok? thing because the error is a little different depending
# on whether we use the generator or not - ST 2/10/09
DeadTurtles1
  globals [glob1 glob2]
  breed [mice mouse]
  O> create-mice 1 [ set glob1 self die ]
  O> crt 1
  [color] of glob1 => ERROR That mouse is dead.
  T> set glob2 "" carefully [ __ignore distance glob1 ] [ set glob2 error-message ]
  glob2 => "That mouse is dead."
  T> set glob2 "" carefully [ __ignore distance-nowrap glob1 ] [ set glob2 error-message ]
  glob2 => "That mouse is dead."
  T> set glob2 "" carefully [ __ignore towards glob1 ] [ set glob2 error-message ]
  glob2 => "That mouse is dead."
  T> set glob2 "" carefully [ __ignore towards-nowrap glob1 ] [ set glob2 error-message ]
  glob2 => "That mouse is dead."

DeadTurtles2
  globals [glob1]
  breed [mice mouse]
  mice-own [age]
  O> create-mice 1 [ set glob1 self die ]
  O> follow glob1 => ERROR That mouse is dead.
  [color] of glob1 => ERROR That mouse is dead.
  O> ask glob1 [ set color red ] => ERROR That mouse is dead.
  [pcolor] of glob1 => ERROR That mouse is dead.
  O> ask glob1 [ set pcolor red ] => ERROR That mouse is dead.
  [age] of glob1 => ERROR That mouse is dead.
  O> ask glob1 [ set age 11 ] => ERROR That mouse is dead.

DeadTurtles3
  globals [glob1]
  O> crt 2
  O> ask turtle 0 [ ask turtle 1 [ ask turtle 0 [ die ] ] set glob1 5 ]
  glob1 => 0

DeadTurtles4
  globals [glob1]
  O> crt 1
  T> hatch 1 [ ask myself [ die ] ] set glob1 5
  glob1 => 0

DeadTurtles5
  globals [glob1]
  to-report foo ask turtle 0 [ die ] report 5 end
  O> crt 1
  O> ask turtle 0 [ set glob1 foo ] => ERROR the FOO procedure failed to report a result
  glob1 => 0

DeadTurtles6
  globals [glob1]
  to-report foo die report 5 end
  O> crt 1
  O> ask turtle 0 [ set glob1 foo ] => ERROR the FOO procedure failed to report a result
  glob1 => 0

DeadTurtles7
  globals [glob1]
  O> crt 1
  T> without-interruption [ ask turtle 0 [ die ] ] set glob1 5
  glob1 => 0

DeadTurtles8
  globals [glob1]
  O> crt 1
  O> set glob1 turtles with [true]
  T> die
  O> without-interruption [ ask glob1 [ die ] ]

DeadTurtles9
  globals [glob1]
  O> crt 10
  O> set glob1 turtles with [true]
  O> ask turtle 5 [ die ]
  turtle 5 => nobody
  count glob1 => 9
