enforce()?

Simen kjaeraas simen.kjaras at gmail.com
Tue Jun 22 05:00:26 PDT 2010


BCS <none at anon.com> wrote:
>> 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)

Also, if you do have two different versions, I'll bet you ready money
someone will program only the release version, because "that's the
version the users will have", "the debug version is slow" or whatever
other inane excuse their minds are capable of coming up with.

-- 
Simen


More information about the Digitalmars-d mailing list