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

[REBOL] Document bug - [catch] There's a catch! Re:

From: lmecir::geocities::com at: 7-Oct-2000 1:47

Hi, I am sure, I didn't explain the things as they should have been explained. Here is the example, how the code could look: Transpose: function [ [catch] "Transposes Matrices" Matrix [block!] ] [ Results Width Height Column ] [ throw-on-error [ Results: make block! Width: length? Matrix/1 Height: length? Matrix repeat Index Width [ Column: make block! Width foreach Row Matrix [ insert/only tail Column Row/:Index ] insert/only tail Results Column ] Results ] ] Now an example use:
>> transpose [[1 2 3] [a b c] 3]
** Script Error: Cannot use path on integer! value. ** Where: transpose [[1 2 3] [a b c] 3] Cheers, Ladislav ----- Original Message ----- From: <[Al--Bri--xtra--co--nz]> To: <[list--rebol--com]> Cc: <[docs--rebol--com]>; <[feedback--rebol--com]>