Can I do an or in a version block?

Timon Gehr timon.gehr at gmx.ch
Fri Mar 9 02:34:42 PST 2012


On 03/09/2012 02:25 AM, Ary Manzana wrote:
> On 3/8/12 6:11 PM, H. S. Teoh wrote:
>> On Thu, Mar 08, 2012 at 05:56:09PM -0300, Ary Manzana wrote:
>> [...]
>>> I don't think it would be hard to implement boolean logic inside
>>> version.
>>
>> It's not hard at all.
>>
>>
>>> Would it make sense if I make a pull request for it?
>>
>> Walter would reject it.
>>
>> He has stated clearly in the past that he intended version to be
>> simple and minimal, and that adding anything onto it will only result in
>> abuses.
>
> What kind of abuses?

Just have a look at reasonably portable C libraries that use the C 
preprocessor for versioning. IIRC Walter pointed to the Hans-Boehm GC 
the last time this issue was brought up.

> I don't understand that logic in a language that
> allows you to use pointers, alloc memory however you want, and get
> segfaults for null memory access.

Sorry, but this does not make any sense.


More information about the Digitalmars-d-learn mailing list