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

[REBOL] Re: percent! - new datatype request

From: ammon:rcslv at: 4-Jun-2002 20:21

hi, Thanks for the stimulating thoughts... I would personally expect to see the output data type be the same as the *first* argument. I find that to be more consistent within REBOL (i.e. try appending a path to a block, now a block to a path) so if you have an integer and you subtract, add, divide.... it should affect the integer not the percent. and if you are dealing with a number besides 100, it should be as you said, "per cent" example:
>> 200 - 50%
== 100
>> 500 + 100%
== 1000
>> 100 - 75%
== 250 After all, if you don't evaluate it that way, you have lost the advantage that you get from the datatype, or at least the most obvious reason that I can see (what did you have in mind to use it for Andrew?). Give me a point of view that would logically result in a different result than I have given. (I am often too blind to the things around. ;-) and while you are at it, please explain why 100 * 50% would result in a percent! rather than an integer. Thanks!! Ammon A short time ago, Anton, sent an email stating: