Is Trump learning — or ad-libbing — on foreign policy?