[REBOL] Re: Reverse (get to-word string!)
From: carl:cybercraft at: 28-Sep-2001 22:31
On 28-Sep-01, Christopher Ross-Gill wrote:
> Hi Ammon,
>> Now that I have the ability reference an object from a string, is
>> it possible to make an object reference into a string? Like this:
>>>> a: layout [
>> [ text "this is an object"
>> []
>>>> to-string a
>> == "?object?"
>> But have it return "a"
> Try:
>>> a: layout [
> [ text "this is an object"
> [ ]
>>> mold a
> == {
> make object! [
> type: 'face
> offset: 25x25
> size: 132x59
> span: none
> pane: [
> make object! [
> ...
>>>
> - Chris
Or...
>> to-string 'a
== "a"
if that was what you were after. (:
--
Carl Read