POV-Ray : Newsgroups : povray.off-topic : Adventures with digital painting : Re: Adventures with digital painting Server Time
11 Oct 2024 07:11:36 EDT (-0400)
  Re: Adventures with digital painting  
From: Darren New
Date: 12 Mar 2008 22:44:29
Message: <47d8a31d$1@news.povray.org>
Darren New wrote:
> Warp wrote:
>> Darren New <dne### [at] sanrrcom> wrote:
>>> outint'endian = little;
>>
>>   Exactly which language is this? 
> 
> Ada.  I am pretty sure it supports this.

It turns out the syntax is



(The ' indicates a compile-time value, in much the same sense that 
sizeof() is a compile-time function in C. Ada lets you read dozens of 
these and set others, like the address, volitility, atomicity, etc.)

It also turns out it's not *quite* so straightforward especially for . 
But clearly it's better to let the compiler do it in cases where it can 
than to code different routines with #ifdef in there.  Autoconf doesn't 
make C portable - it rewrites your code to be non-portable to that 
specific machine. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.