From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Vulkan is here! Date: Fri, 19 Feb 2016 12:05:33 +0000 Organization: A noiseless patient Spider Message-ID: References: <483697966.477441353.121801.laguest-archeia.com@nntp.aioe.org> <644893903.477451006.819824.laguest-archeia.com@nntp.aioe.org> <21d9eacd-1915-4da6-8778-31014be1498f@googlegroups.com> <56C6A4A8.40209@bahnhof.se> <3952198b-d66e-473b-b285-cedd2a628ec8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="03d977edd803a9f1bf346d48fa393156"; logging-data="30084"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RC6XVNn3sa5UR9qzU9ak8/Ve/Jp13/W4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:tKGlmktrdKvFprTGJxP2bEWlktU= sha1:DaveVYIXfBu/DxQ7mbVDBl/cjFk= Xref: news.eternal-september.org comp.lang.ada:29546 Date: 2016-02-19T12:05:33+00:00 List-Id: Per Sandberg writes: > That's the problem when going from an untyped language with MACROS to > a typed language with constants. > In my experience a working way to get the "types" correct is a to do a > higher level of binding, that way those ambiguities usually sort them > self out. Indeed. As an alternative translation, which allows the compiler to decide, function VK_WHOLE_SIZE return Unsigned_64 is (not 0); function VK_WHOLE_SIZE return Unsigned_32 is (not 0); function VK_WHOLE_SIZE return Unsigned_16 is (not 0); function VK_WHOLE_SIZE return Unsigned_8 is (not 0);