我在VBA中使用with语句,如下所示: With New MSXML2.DOMDocument60end with 我有一个这样的潜水器: PrivateSub anyfunction(ByVal par_document As MSXML2.DOMDocument60)
end sub 有没有办法使用临时对象作为anyfunction的参数,或者我必须用"Dim“创
我已经习惯了这样一个事实:const引用将临时引用的生存期延长到引用超出范围时为止: X const & x = X();
// Contrived example to make a point about lifetime of a temporary in an expressionlifetime of the temporary persi