POV-Ray : Newsgroups : povray.general : #declare and semicolons : #declare and semicolons Server Time
5 Aug 2024 12:14:04 EDT (-0400)
  #declare and semicolons  
From: Andrew Coppin
Date: 21 Sep 2002 15:16:06
Message: <3d8cc576@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a question... Suppose I want to write a macro like

#macro Stuff(X, Y)
  X+Y
#end

Now, that's fine if I do

sphere {<7, 2, -6>, Stuff(11, 4)}

but if I try

#declare Banana = Stuff(6, 14);

I get a "no semicolon" error message. Is this a bug? Is there a way
round it? (Obviously the same thing occurs with vectors and colours.)

Thanks!
Andrew.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPYzFb7EpzUF0Y1JeEQKDuQCfVpXjKT/mSxqDqCItTm9N6d/jh/UAoIfq
hYYce7NzlLoVFqjwEeSxiVq6
=arJn
-----END PGP SIGNATURE-----


Post a reply to this message

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