Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] problems with series of objects

From: raimund::swol::de at: 13-Aug-2000 23:58

Hi, I try to have a series of self defined objects and pick one of the objects to access it. Here is the code I use: REBOL [] book: make object! [ author: title: info: none ] book1: make book [] book1/author: "Fritz the Cat" book1/title: "That is the title of book1" book1/info: "That is info of book1" book2: make book [] book2/author: "Fritz the Cat" book2/title: "That is the title of book2" book2/info: "That is info of book2" my-serie: [book1 book2] this-book: make book [] this-book: first my-serie print this-book/info And here comes the output: [raimund--linux]:~/Development/rebol/Tests > rebol REBOL/View 0.9.9.4.2 1-Jun-2000 Copyright 2000 REBOL Technologies. All rights reserved. Type DEMO to run demo if it is disabled
>> do %test_objects.r
** Script Error: Cannot use path on word! value. ** Where: print this-book/info
>>
How can I access the info from this-book? I can make an assignment like this-book/info: "This book info" but I can not print it?? Can anyone help me on that?? Thanx Raimund -- <---------------------------------------------> 42 war schon immer einge gute Antwort;-))