[EMAIL PROTECTED] wrote: > Hi... > > I'm trying to do something with rebol that I think it is suited for: make a > rebol-powered dynamic website. > > the problem: > > I can't instances. or I can't make any sense out of them :) > > Detail: > > I want to define a site...as on object. Lets call it site: > > A site would be made up of pages object..."page:" > > A "page:" might look like this... > > page: [ title picture byline callout bodycopy comments] > > ...and on and on. > > so...how do I make a new page: and put it into the site: in such a way that > i can ask for any page: that i want? In REBOL 1.x, you could extend your object by simply stating: my-obj/something-new: new-value. I still wonder why REBOL changed it. I thought at least following should work: >> ble: make object! [add-page: func ['name blk][set in self name blk]] >> ble/add-page rur ["ahoy"] ** Script Error: set expected word argument of type: any-word block. ** Where: set in self name blk But it doesn't :-) I followed example from REBOL/Apache: install: func ['name body][set in self name func [] bind body 'self ] Now I am confused, if REBOL/Apache module uses different kind of object behavior or I am confused here. -pekr- > > > I want to be able to write the blocks out to disk so I can read and write to > them, etc. > > I hope that made some sense :) > BTW if anyone has code for this sort of thing, it would be a big help.
