POV-Ray : Newsgroups : povray.beta-test : [doc] concat with one parameter : Re: [doc] concat with one parameter Server Time
29 Jul 2024 10:32:02 EDT (-0400)
  Re: [doc] concat with one parameter  
From: Warp
Date: 22 May 2002 09:22:18
Message: <3ceb9b89@news.povray.org>
Felix Wiemann <Fel### [at] gmxnet> wrote:
> Where's the problem with concat?

  Have you tried just enclosing the string in parentheses?

>> #macro clonestring(String)
>>     #local tmpString = String
>>     tmpString
>> #end

> Is much longer. So not better but worse.

  Perhaps you should learn some basics of (modular) programming.
  "It's much longer" is a really poor excuse for making bad code.
  You have to write one #local more - so what? The alternative is to write
an extra 'concat()' several times, which makes the code quite obfuscated
and longer.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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