To be honest, I'd stop worrying about this, as you're likely to loose more money on a 40D depreciating as new versions are released than you will an EF-S lens over 5-10years as there is likely to be drop camera bodies demaniding lenses long after production stops!
If it worries you that much, why not buy a 5D or a second hand 1Ds MkII instead, and that way you have a full frame sensor from the off?
Certainly what you will find if you do buy a 40D is that you will want a 10-20mm or equivalent lens for landscape shots, as 24mm on the crop sensor doesn't really give a wide enough FOV.
Having said that, at the moment with my 40D I have the 70-200 F4 IS (for reach) and the 24-105 F4 IS ( as a walkabout) and would like to add the 10-20 now for landscapes.