POV-Ray : Newsgroups : povray.pov4.discussion.general : Identifier declaration consistent with other languages : Re: Identifier declaration consistent with other languages Server Time
2 May 2024 22:17:38 EDT (-0400)
  Re: Identifier declaration consistent with other languages  
From: Allen
Date: 10 Nov 2008 02:40:00
Message: <web.4917e46c909e69788f162dfb0@news.povray.org>
Another way to do away with #end/{/} may be to adopt a Python-like blocking
mechanism where the indentation level affects the block.  Then a block as above
could simply be:

MyRing = union:
  for(x=0,x<10,x=x+1):
    circle:
      <...>
....


One problem I've heard from critics of this system is that most editors can't
automatically detect and create folds.


Post a reply to this message

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