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

[REBOL] Re: Using Switch with Words ??/C/C++

From: dness:home at: 1-Nov-2001 21:50

Joel Neely wrote:
> Hi, Anton, > > Ooops! > > Anton Rolls wrote: > > > > Except for the fact that you forgot the brackets! > > He he :) Too much rebol, I think. > > Anton. > > > > > cout << value << endl; > > > > > > (but I couldn't resist writing a C version that's exactly one > > > keystroke shorter! ;-) > > > > > Given that the same thing can be coded in C as > > > printf "%d\n", value; > > > > OK, then I'll make it Perl and tie for keystroke count! ;-) > > printf "%d\n", $value; > > -jn- >
Not such good perl though. Try print "$value\n"; or K's $value