enforce()?

BCS none at anon.com
Mon Jun 21 19:14:01 PDT 2010


Hello Vladimir,

> On Mon, 21 Jun 2010 07:42:34 +0300, BCS <none at anon.com> wrote:
> 
>>> Why will you assume I'm so dumb that I won't use your interface
>>> correctly?
>>> 
>> First because some people are. And second, because it trivially easy
>> to  respond to support calls that start with "Your DLL is throwing a
>> YouAreNotUsingThisDLLCorrectlyRTFM Exception" <joke/>.
>> 
> I think that for such situations you should ship a debug and release
> version of the DLL.
> This way you don't sacrifice performance when the user doesn't want to
> be
> held by the hand.

Until you can show me a perf problem, I don't see any point in doing that. 
(OTOH, deep structure validation, or anything else slower than O(1), is another 
thing all together)

-- 
... <IXOYE><





More information about the Digitalmars-d mailing list