Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Money! datatype has no currency prefix #576

Open
rebolbot opened this issue Jan 28, 2009 · 1 comment
Open

Money! datatype has no currency prefix #576

rebolbot opened this issue Jan 28, 2009 · 1 comment

Comments

@rebolbot
Copy link
Collaborator

Submitted by: PeterWood

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.


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

CC – Data [ Version: alpha 32 Type: Issue Platform: All Category: n/a Reproduce: Always Fixed-in:none ]

@rebolbot
Copy link
Collaborator Author

Submitted by: BrianH

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant