In the vampire code this doesn't happen because you return null (that is represented by two zero words), but in general unlike Python in D the safe and idiomatic way to test for array emptiness is to use std.array.empty. Otherwise you risk having problems.

I have just opened a thread in the main D newsgroup about this:

http://forum.dlang.org/thread/[email protected]

Bye,
bearophile

Reply via email to