||[Aug. 20th, 2011|07:24 pm]
Geeky I know but I've been rewatching Star Trek:TNG. This sort of thing happens loads:|
"Computer, where is Lieutenant Spurious?"
"Lieutenant Spurious is not on the ship."
"Computer, how did Lieutenant Spurious leave the ship?"
Seriously engineering dept, this is easy to fix.
for (person: ship.peopleMeantToBeHere()):
if (person.getLocation == UNKNOWN):
if (!person.onShip() && person.methodOfLeaving() == UNKNOWN):
if (person.identity() == UNKNOWN):
#Add more checks here to fix issues as they occur
(Probably want to change that predefined UNKNOWN when moving from dev to production code).