Should `pragma(inline, expression)` be allowed ?

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Oct 20 05:18:50 UTC 2020


On Tue, Oct 20, 2020 at 01:54:38AM +0000, Basile B. via Digitalmars-d wrote:
> On Tuesday, 20 October 2020 at 01:32:23 UTC, James Blachly wrote:
> > This would solve a problem I had whereby we had several compile time
> > backends available and wanted to do
> > 
> > version(A || B)
> 
> I would not bet too much on this one if I were you...

This has cropped up countless times over the years, and so far, the
answer has been an adamant No. I'm not holding my breath on this one.

If you *really* can't live without ||, use static if instead. (Yes, it's
uglier, but no, I don't have a better idea.)


T

-- 
Without outlines, life would be pointless.


More information about the Digitalmars-d mailing list