Type | Issue | Status | waiting | Date | 28-Jan-2009 03:10 |
---|---|---|---|---|---|
Version | alpha 32 | Category | n/a | Submitted by | PeterWood |
Platform | All | Severity | minor | Priority | low |
Summary | Money! datatype has no currency prefix |
---|---|
Description |
The Money! datatype has an optional currency prefix in Rebol 2. It appears to have been removed in Rebol 3. If this is not just an omission, the entry about Money! in DocBase should make this clear. I will happily update DocBase to reflect this behaviour if this is intentional. |
Example code |
In R2: >> dosh: USD$1000.00 == USD$1000.00 >> probe first dosh "USD" == "USD" >> probe second dosh 1000.0 == 1000.0 In R3: >> dosh: USD$1000.00 ** Syntax error: Invalid "money" -- "USD$1000.00" ** Near: (line 1) dosh: USD$1000.00 >> dosh: $1000.00 == $1000.00 >> probe first dosh ** Script error: cannot use pick on money! value ** Where: first ** Near: first dosh |
Assigned to | n/a | Fixed in | - | Last Update | 28-Jan-2009 04:14 |
---|
Comments | |
---|---|
(0000381)
BrianH 28-Jan-2009 04:14 |
Bug #250 also refers to this.
We need to discuss in R3 chat about whether this is (or should be) an intentional change to the money! type. Waiting on that discussion. |
Date | User | Field | Action | Change |
---|---|---|---|---|
28-Jan-2009 04:14 | BrianH | Description | Modified | - |
28-Jan-2009 04:14 | BrianH | Code | Modified | - |
28-Jan-2009 04:14 | BrianH | Status | Modified | submitted => waiting |
28-Jan-2009 04:14 | BrianH | Priority | Modified | normal => low |
28-Jan-2009 04:14 | BrianH | Comment : 0000381 | Added | - |
28-Jan-2009 03:10 | PeterWood | Ticket | Added | - |