Fuzzy,
I can chime in on this; I recently had the same thought. As I have acquired a few S&W 40s, and Mec-Gar makes readily available 5900 mags, would they be usable in the 40s?
Here's my experience with the following: 4006, 4003, 4013TSW(no-rail), 4013TSW, Shorty 40 MkII, and Shorty 40 MkIII.
As Sevens and JohnHL mentioned, the S&W 40 mags have a bump on the front about 1/3 of the way down the mag body. All the S&W 3rd Gen 40s have a corresponding channel cut in in the front of the magwell to allow these to slide home. Since the 9's don't have that channel, the bump will stop a 40 mag from being loaded in a 9. However, nothing prevents the 59/5900 mag from seating in a 40, with some exceptions. Aside from the color of the follower and the round count holes, the other differences that are easy to miss: the feed lips on the 40 mags are ~1mm wider, and the shape of the back corners of the mag body are different. The back corners of the 40 mags have a curve (both full size and shorty/TSW), but the 9mm mags have a sharper corner, to include 69/6900 short mags.
My 5900 9mm mags will fit in the full size and TSW guns. They will not fit in either of my shorty 40s. If you look in the magwell of the guns, the shorty 40s have rounds at all four corners. The full size 40s and later TSW guns have a sharp corner cut into both rear corners of the mag well flare; it actually looks just like the cuts in my 5900-series guns. My theory: the shorty 40s, being PC guns, had their mag wells cut to fit the new 40 mags, but the full size and TSW guns (production models) had the mag wells cut on the same machines as the production double stack 9s of the same frame size.
Just last weekend I took the 4003 to the range, and I actually loaded a Mec-Gar 5900 15 round mag with 11 rounds of 40 S&W. It loaded and fed just like one of the 40 mags, no problem.
So, to answer the question, a S&W 9mm mag will load and feed in a 40, as long as it has the same mag well cuts at the back corners as the 9s do. It seems that the shorty 40 series, at least, does not. I can't talk to any other PC 40s, but the shorties are a no go.
Regards,
ZoomieG