in reply to Deparse broken or just misunderstood?
That sure looks like a bug - the two are inequivalent. The Deparsed version introduces a narrower scope for the lexical $d than is in the original.
After Compline,Zaxo