POV-Ray : Newsgroups : povray.general : Suggestion: array functions : Re: Suggestion: array functions Server Time
8 Aug 2024 12:18:53 EDT (-0400)
  Re: Suggestion: array functions  
From: Ron Parker
Date: 22 Feb 2001 12:14:06
Message: <slrn99ai70.qdv.ron.parker@fwi.com>
On Thu, 22 Feb 2001 11:57:11 -0500, Chris Huff wrote:
>In article <rggp8t019366bfd5tqif0rami2l5pk9ihm@4ax.com>, Peter Popov 
><pet### [at] vipbg> wrote:
>
>> I would also like to see an equivalent of the 'with'
>
>What do you mean? I don't remember using "with" in Pascal, but my only 
>experience with Pascal was a class a couple years ago.

If C had an equivalent, you could do something like this:

struct foo {
  int bar;
  int baz;
} quux, zort;

with (quux) {
  bar = 0;
  baz = 2;
}

Essentially, it saves you from having to type "quux." a bunch of times.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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