unspecified

VBA - Excel - Automation Error Unspecified Error

感情迁移 提交于 2019-12-25 05:06:30
问题 So I ran into a slight stumbling block and hopefully here someone can help me. In short, I need to visit a string of webpages (the list of the names on each page are already input, that code works fine). As my code visits each page, I need to pull back information. Unfortunately, there's a problem - it can't even make it through the "A" list before I get "Automation Error Unspecified Error" and it's never at the same spot. I've tried the "normal" steps to fix this. I've installed the VB 6

Why is undefined behavior allowed (as opposed to not compiling/crashing)?

倖福魔咒の 提交于 2019-12-12 20:14:57
问题 I understand the reasons for compiler/interpreter language extensions but why is behaviour that has no valid definition allowed to fail silently/do weird things rather then throwing a compiler error? Is it because of the extra difficulty(impossible or simply time consuming) for the compiler to catch them)? P.S. what languages have undefined behaviour and which don't? P.P.S. Are there instances of undefined behaviour which is not impossible/takes too long to catch in compilation and if so are

unspecified bind

笑着哭i 提交于 2019-12-11 05:58:17
问题 I was researching what std::bind is and what it's for (that may eventually be a different question) at MSDN: http://msdn.microsoft.com/en-us/library/bb982702.aspx And saw that the prototypes listed are: template<class Fty, class T1, class T2, ..., class TN> unspecified bind(Fty fn, T1 t1, T2 t2, ..., TN tN); template<class Ret, class Fty, class T1, class T2, ..., class TN> unspecified bind(Fty fn, T1 t1, T2 t2, ..., TN tN); Which confuses me for two reasons. 1) Last I checked, MSVC didn't

Undefined/Unspecified/Implementation-defined behaviour warnings?

喜夏-厌秋 提交于 2019-12-07 04:54:48
问题 Can't a compiler warn (even better if it throws errors) when it notices a statement with undefined/unspecified/implementation-defined behaviour? Probably to flag a statement as error, the standard should say so, but it can warn the coder at least. Is there any technical difficulties in implementing such an option? Or is it merely impossible? Reason I got this question is, in statements like a[i] = ++i; won't it be knowing that the code is trying to reference a variable and modifying it in the

Undefined/Unspecified/Implementation-defined behaviour warnings?

ぐ巨炮叔叔 提交于 2019-12-05 10:51:16
Can't a compiler warn (even better if it throws errors) when it notices a statement with undefined/unspecified/implementation-defined behaviour? Probably to flag a statement as error, the standard should say so, but it can warn the coder at least. Is there any technical difficulties in implementing such an option? Or is it merely impossible? Reason I got this question is, in statements like a[i] = ++i; won't it be knowing that the code is trying to reference a variable and modifying it in the same statement, before a sequence point is reached. Alok Singhal It all boils down to Quality of

Pass a parent class as an argument?

被刻印的时光 ゝ 提交于 2019-12-04 01:42:52
问题 Is it possible to leave a parent class unspecified until an instance is created? e.g. something like this: class SomeParentClass: # something class Child(unspecifiedParentClass): # something instance = Child(SomeParentClass) This obviously does not work. But is it possible to do this somehow? 回答1: Have you tried something like this? class SomeParentClass(object): # ... pass def Child(parent): class Child(parent): # ... pass return Child() instance = Child(SomeParentClass) In Python 2.x, also

Pass a parent class as an argument?

浪子不回头ぞ 提交于 2019-12-01 09:25:37
Is it possible to leave a parent class unspecified until an instance is created? e.g. something like this: class SomeParentClass: # something class Child(unspecifiedParentClass): # something instance = Child(SomeParentClass) This obviously does not work. But is it possible to do this somehow? Have you tried something like this? class SomeParentClass(object): # ... pass def Child(parent): class Child(parent): # ... pass return Child() instance = Child(SomeParentClass) In Python 2.x, also be sure to include object as the parent class's superclass, to use new-style classes. You can change the