Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The C Programming Language

Name: Anonymous 2011-10-24 21:45

Let's have a thread for the C programming language. It's an excellent language.

Name: Anonymous 2011-10-28 7:59

GC approved GOTO

(define (foo)
  (let ((some-value 0)
        (a (matrix))
        (b (matrix))
        (c (matrix)))
    (call-with-current-continuation
     (lambda (goto-exit-foo)
       (unless (matrix-init! a 1000 1000) (goto-exit-foo))
       (unless (matrix-init! b 1000 1000) (goto-exit-foo))
       (unless (matrix-init-with-matrix! c a) (goto-exit-foo))
       (unless (matrix-multiply-by-constant! c 2) (goto-exit-foo))
       (unless (matrix-add! c b) (goto-exit-foo))
      
       ...
      
       )
     )
;exit-foo:
    (matrix-free! a)
    (matrix-free! b)
    (matrix-free! c)
    some-value
    )
  )

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List