That is what I did. I replaced the open diff carrier in my 240 axle with a G80 carrier from a 940, and did not need to shorten my 240 axle shafts. You need to slice 1/4 inch or so off one (both?) axle shafts on earlier 240's.That being said, the late 240 axles shafts are shorter which allows one to use a G80 without modifications. It has nothing to do with 940 axles or their length. John did not put a 940 axle shaft into his 240 axle because that does not work.
The 940 axle shafts are considerably wider, do not work, same with the whole axle housing, wider, wrong suspension mounts, etc.
On mine, I took the calipers off, unbolted the axle bearings, slid the axle shafts out a few inches. Then unbolted the Panhard rod for clearance, took the cover off, took the diff carrier out, put the G80 in. It felt pretty good (lol shade tree shens) so I just stuck the cover back on, slid the axles back in, bolted the calipers on, and it's been good for 5 or 6 years so far. But generally speaking, I wouldn't recommend that anyone else shade tree a diff like that. Gear clearances have to be right or the diff will blow up. I just got lucky.