Here is a word from Castrol regarding the use of Diesal oil in a gasoline engine:
Although Castrol Diesel oils carry an S rating, its primary credentials are diesel. The S rating is meant for short term use if the owner cannot find the appropriate gasoline engine oil. Diesel engines and gasoline engines have different operating regimes (loads, temperatures, speeds, fuel, exhaust recirculation); the lubricants are formulated differently (additives, ZDDP) to be in line with the primary operating requirements of the engine.
Diesel engine oil is formulated with very high levels of detergency to counteract the soot that is circulated back into the oil. Detergency is surface active and does compete with ZDDP for the surface of the cam lobe and lifter face. The proper engine oil to use long-term in gasoline classic car engines is an oil designed for use in a gasoline engine with the correct level of ZDDP to protect his cam and lifters.