We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Submitted by: Oldes
It would be nice to be able set all keys in existing object from another object. Imagine to have:
spec: object [a: b: c: none]
and data object which may looks like:
data: object [x: 3 a: 1 y: none]
and you want to make object with only fields of the spec with possible values of data object. In Red it is possible to use set:
spec
data
Red
set
>> set new: copy spec data new == make object! [ a: 1 b: none c: none ]
In R3 it now does this nonsense:
R3
== make object! [ a: make object! [ x: 3 a: 1 y: none ] b: make object! [ x: 3 a: 1 y: none ] c: make object! [ x: 3 a: 1 y: none ] ]
Imported from: metaeducation#2358
Hostilefork added the Type.wish on Jan 30, 2019
Oldes added a commit to Oldes/Rebol3 that referenced this issue on Feb 1, 2019: FEAT: set object from object keeping only existing keys of the first one
Oldes added a commit to Oldes/Rebol3 that referenced this issue on Feb 1, 2019: TEST: unit test for WISH-2358: set OBJECT from OBJECT
Oldes added a commit to Oldes/Rebol3 that referenced this issue on Feb 1, 2019: FEAT: CHANGE: making SET native to be more compatible with Red-langua…
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Submitted by: Oldes
It would be nice to be able set all keys in existing object from another object.
Imagine to have:
and data object which may looks like:
and you want to make object with only fields of the
spec
with possible values ofdata
object.In
Red
it is possible to useset
:In
R3
it now does this nonsense:Imported from: metaeducation#2358
Comments:
The text was updated successfully, but these errors were encountered: