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

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 1 comment
Closed

Money! datatype has no currency prefix #576

Siskin-Bot opened this issue Feb 15, 2020 · 1 comment
Labels
Datatype: money! duplicate This issue or pull request already exists

Comments

@Siskin-Bot
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

Imported from: CureCode [ Version: alpha 32 Type: Issue Platform: All Category: n/a Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#576

Comments:

Rebolbot commented on Jan 28, 2009:

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.


Rebolbot mentioned this issue on Jan 12, 2016:
function to retrieve/set currency in money! value


@Oldes
Copy link
Owner

Oldes commented Dec 3, 2020

It's not yet implemented. Duplicate of #250

@Oldes Oldes closed this as completed Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datatype: money! duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants