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

[REBOL] Re: Help function for contracts

From: jan:skibinski:sympatico:ca at: 19-Oct-2002 17:38

Hi Gregg,
> << 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.
Actually, I found reasonable solution: use 'compose/deep instead of 'reduce. This snippet appears to produce acceptable layout - clearly delineating the contract structure: ----------------- compose/deep [ require [(pre)] result: do [(fun-body)] ensure [(post)] result ] -------------- I'll update the dbc.r tonight. Regards, Jan