Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Dumb newbie Rebol question

From: maarten:vrijheid at: 5-Sep-2003 7:39

> a: "" > > I am assuming bad side effects - can someone enlighten me? > >> F: function [A] [S] [S: "" insert S A S] > >> f 1 > == "1" > >> f 3 > == "31" > >> source f
Think of this as the default behaviour is that of a static variable in Java/C++, if you use 'copy it becomes instance-like. Now forget Java ;-)