POV-Ray : Newsgroups : povray.beta-test : strings operations crash with both compiles : strings operations crash with both compiles Server Time
30 Jul 2024 12:29:34 EDT (-0400)
  strings operations crash with both compiles  
From:
Date: 7 Nov 2001 11:44:53
Message: <e3piut8anmf4cli4pnfmstadgc3nleqvb2@4ax.com>
POV 3.5 b7 NT 4 Sp6 PII 233 128 MB

following code causes crash with both compile of b7

#local S="H1676688"

#macro M(V)
  #local S=chr(mod(V,123))
  #local F=div(V,123);
  #if(F>0)
    #local S=concat(S,M(F));
  #end
  S
#end

#macro P(S)
  #local V=asc(substr(S,1,1))-asc("A");
  #local T=val(substr(S,2,V));
  #local S=substr(S,V+2,strlen(S)-(V+3))
  #local O=M(T);
  #if(strlen(S)>0)
    #local O=concat(O,P(S));
  #end
  O
#end

#warning P(S)

ABX


Post a reply to this message

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