Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:05:14+00:00 2026-06-17T11:05:14+00:00

In Rebol 2: >> foo: make object! [a: 10 b: 20] >> foo/a ==

  • 0

In Rebol 2:

>> foo: make object! [a: 10 b: 20]

>> foo/a
== 10

>> foo/b
== 20

>> first foo
== [self a b]

>> second foo
== [make object! [
        a: 10
        b: 20
    ] 10 20]

>> third foo
== [a: 10 b: 20]

>> fourth foo
** Script Error: fourth expected series argument of type:
   series date port tuple event
** Near: fourth foo

So you can pick out of it as if it were a block for values 1, 2, 3. But doing positional selection is right out in Rebol 3:

>> first foo
** Script error: cannot use pick on object! value
** Where: first
** Near: first foo

I gather that this is deprecated now (like picking out of a function to get its parameter list). However, I’m trying to translate some code that says something like:

bar: construct/with (third foo) mumble

(a) What is the point of that code?

(b) How would I translate it to Rebol 3?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:05:15+00:00Added an answer on June 17, 2026 at 11:05 am

    a) Construct builds the object without evaluating the spec block. This implies that the spec is of some [set-word! any-type!] form (which it would always be if you are using the body of another object). Construct/with uses a second object (mumble) as the prototype.

    b) Object operations appear to have changed as follows:

    i) first object is replaced by words-of object

    ii) second object is replaced by values-of object

    iii) third object is replaced by body-of object or to block! object

    Therefore your code can be replaced with:

    bar: construct/with body-of foo mumble
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Rebol tells the error and the line but it doesn't say in what source
It is possible to overide rebol system words like print, make etc., so is
When I call a rebol script with call shell(rebol.exe myscript.r) The shell doesn't return
The following Rebol code fails due to an out of memory error: read/binary http://mirror.bytemark.co.uk/ubuntu-releases/lucid/
The example in doc http://www.rebol.org/documentation.r?script=rebelxml.r to create XML works >> clear-xml-data == >> set-xml-data/content
Let's say I type a stupid command in Rebol Console like >> AWordThatMeansNothing **
I'm writing a tutorial on Rebol's Object persistence but I'm not sure if my
Imagine the following REBOL code: foo: context [bar: 3] I now have a context
I have this REBOL script: REBOL [Title: Employee list] emp-list: [ Amy 1 Bob
In Rebol 2 there was a HASH! type as well as a MAP! type.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.