Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,321 of 19,505    |
|    Erland Sommarskog to Gene Wirchenko    |
|    Re: SS 2008: Rethrowing User-Defined Err    |
|    13 May 11 23:27:09    |
      From: esquel@sommarskog.se              Gene Wirchenko (genew@ocis.net) writes:       > Erland! You are not doing your part! You were supposed to tell       > what I was missing.              As a matter of fact, I did! I told you were missing the most recent       version of SQL Server, if only in beta. :-)              > I fight with the language a lot, because it violates the Law of Least       > Astonishment so much.              Sometimes I think that maximising the astonishment has been a prime       design goal of the language.              > I wish that there was something like #include and #define so I       > could define mnemonics for the errors I wish to define. I have       > looked, but I did not find anything.              It is not available in the product as such, but you should be able       to roll your own with help of the preprocessor from C++ if you have       Visual Studio.              As a matter of fact, in the system I spend most of my time with, we       do use a preprocessor. Not the one from C++, but a homebrew. It's       part of my toolset, AbaPerls, which you can find at       http://www.sommarskog.se/AbaPerls/index.html. But you would not       start using AbaPerls only to get a preprocessor.              > That is good in general, but I have a gotcha. |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca