Using enums as function parameters (in a minimized way)

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 1 05:04:46 PST 2015


On Tuesday, 1 December 2015 at 13:03:37 UTC, tcak wrote:
> On Tuesday, 1 December 2015 at 10:50:04 UTC, Rikki Cattermole 
> wrote:
>> [...]
>
> This is like: Q) I want to write an OS. How?  A) Write in 
> assembly.
>
> What Ozan says is logical. Compiler should assume it in that 
> way normally. I have thoroughly thought about whether this 
> assumption would cause problem yet though.
>
> Unfortunately compiler doesn't accept that.

*haven't thought


More information about the Digitalmars-d-learn mailing list