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

[REBOL] Re: Help function for contracts

From: greggirwin::mindspring::com at: 19-Oct-2002 9:46

Hi Jan, << One question: How to programmatically insert line breaks into a series of blocks? >> That's a tricky one. If you use a layout in your code, the line hints are preserved, but I haven't found a way to simulate them. If you're using objects, you can MOLD them to make REBOL do the layout for you, but it doesn't help with blocks.
>> o: make object! [a: 0 b: 1 c: [ca: 2 cb: 3]] >> mold o
== { make object! [ a: 0 b: 1 c: [ca: 2 cb: 3] ]}
>> o: make object! [a: 0 b: 1 c: make object! [ca: 2 cb: 3]] >> mold o
== { make object! [ a: 0 b: 1 c: make object! [ ca: 2 cb: 3 ] ]}
>> third o
== [a: 0 b: 1 c: make object! [ ca: 2 cb: 3 ]] --Gregg