It may be different in Common Law, but certainly in the continental European law systems, looking at the reasoning behind a law is pretty standard procedure when interpreting a law.