ARexx undefined behavior

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
polluks
Posts: 26
Joined: Tue May 19, 2015 6:30 pm
Location: Germany
Contact:

ARexx undefined behavior

Post by polluks »

Please explain the output of this script

Code: Select all

/* Gerard Schildberger's badboy */
do i=0 to 7
$= ''
         do j=0 to i
         $= $ fff(j)
         end
say $
end
exit

/* This is not a procedure, $ is still global */
fff:  $= 12
      return $
Post Reply