Can't seem to recall where I read this…
But seriously - if you smoke pot, use hash, or whatever, while you are under its effect your short-term memory doesn't work properly - the neurons just don't connect the same way. While this has no long-range effect, it means you may have trouble remembering what you did while you were smoking, during and after the substance's effect.