Changeset 8151 in project


Ignore:
Timestamp:
02/04/08 23:31:06 (11 years ago)
Author:
kon
Message:

Diff ex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/procedure-decoration

    r8014 r8151  
    209209
    210210== Examples
     211
     212Using a new define syntax (works for compiled or interpreted procedures).
    211213
    212214<enscript language=scheme>
     
    251253</enscript>
    252254
     255Using original define syntax, for compile-time only. Must be used
     256as a compiler extension.
     257
     258<enscript language=scheme>
     259(use procedure-decoration)
     260
     261(let ()
     262  (define-procedure-extender docstring lambda-documentation)
     263  (set! ##compiler#process-lambda-documentation
     264    (lambda (id doc proc)
     265      (set! (lambda-documentation proc) doc)
     266      proc)) )
     267</enscript>
     268
     269
    253270== Notes
    254271
     
    260277Decorating procedure {{foo}} with a {{BECOME?}} {{procedure-decorator}} changes
    261278the procedure object of {{foo}}.
    262 
    263279
    264280== Author
Note: See TracChangeset for help on using the changeset viewer.