guard clause style static if
kdevel
kdevel at vogtner.de
Sat Jul 7 12:54:03 UTC 2018
On Saturday, 7 July 2018 at 12:46:08 UTC, rikki cattermole wrote:
> On 08/07/2018 12:40 AM, kdevel wrote:
>> Interesting alternative
>
> That was not an alternative.
> That is what your code was doing.
What my original code was supposed to do. But it did not compile.
Error: array index [0] is outside array bounds [0 .. 0]
Error: string slice [1 .. 0] is out of bounds
My question is if it is intentionally failing to compile a static
if guard clause.
More information about the Digitalmars-d-learn
mailing list