> I consider it a bigger problem when a homeless person who survives off of government programs does drugs than when an otherwise functional adult does drugs
I agree! But I think the ugliness GP alludes to comes from the fact that this boils down to: the law that people want is essentially selective enforcement weighed against the people who presumably have the least as is (a consequence of their own choices or otherwise).
Alternatively, you can't legislate root causes: you have to legislate against symptoms; the problematic results of drug use. But that seems to be too hard to do too and does seem like a round about way of attacking populations in need.
I think it's a hard question that needs to start with: what rights and options do we want to extend people who for one reason or another find themselves in conflict with "civilized society."