Is there a function to get the parent of an object for example
parent-of system/console/history
would give
system/console
Is there a function to get the parent of an object for example
parent-of system/console/history
would give
system/console
It seems that you don t realise that a path! value is a type of series! value:
>> path: system/console/history
== system/console/history
>> type? path
== path!
>> series? path
== true
So just remove the last value in the series:
>> path: head remove back tail path
== system/console
Peter is right if the history object has just one parent. But it may have others:
my-block: copy []
append my-block system/console/history
my-object: make object! [history: system/console/history]
history is now has three legitimate parents:
Which you consider to the the real parent is really up to you. There is no easy way that I know of to find all the contexts an object (or block) is part of.
I have tested pop successufully with some POP servers with Rebol but it doesn t work with my hosting server dreamhost (which works with Outlook I have tested http://wiki.dreamhost.com/Outlook_Express )...
I want to be able to modify Object dynamically by adding / removing properties or methods on the fly. For Adding no problem, for Removing I thought about using Set Difference Math Operator but it ...
The new function below doesn t work if Obj is local. If I remove it from /local it works. So what to do to make it work with a local Obj thanks ? Sure not hard for you. Person: make object! [ Person:...
I want to do this: >> SET [a b] reduce [(ask "a: ") (ask "b: ")] a: 1 b: 2 == ["1" "2"] >> Programmatically: args: [a b] block: copy [] foreach arg args [ append block to-word "(" ...
Is there a function to get the parent of an object for example parent-of system/console/history would give system/console
Let s say I have list: [system/history system/prompt] I want to convert to list-string: ["system/history" "system/prompt"] This may be an obvious answer but I can t see any :) Thanks.
Since user.r has changed directory depending on version, it is annoying for automatic script distribution which would depend on user.r not to know where it is. So is there any system variable which ...
Rebol 2 VID was hugely missing Dropdownlist and Treeview, I have made a search on Rebol 3 on Google but couldn t find anything except a discussion. So what will Rebol 3 VID really include as new ...