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

[REBOL] Re: Celsius-Fahrenheit / Fahrenheit-Celsius

From: norsepower:uswest at: 12-Dec-2000 7:04

Ahh... but I have a fetish for using functions called as paths of objects:
>> temperature/to-celsius! 32
== 0
>> temperature/to-fahrenheit! 100
== 212 And the "!" exclamation points are exciting! (of course they do tend to indicate you are assigning a datatype. Perhaps we should have a temperature datatype! which rounds off decimals to the nearest whole number?)