PasteRack.org
Paste # 11360
2015-03-26 10:38:53

Fork as a new paste.

Paste viewed 508 times.


Embed:

  1. ;this is structs.rkt
  2.  
  3. (provide (struct-out dxf-entity)
  4.          (struct-out dxf-line)
  5.          (struct-out dxf-arc)
  6.          (struct-out dxf-point))
  7.  
  8. ;; struct definitions
  9. (struct dxf-entity
  10.   (layer
  11.    [selected #:auto #:mutable]
  12.    [visible #:auto #:mutable])
  13.   #:auto-value #f #:transparent)
  14.  
  15. (struct dxf-line dxf-entity
  16.   (x1 y1 x2 y2)
  17.   #:transparent)
  18.  
  19. (struct dxf-point dxf-entity
  20.   (x y)
  21.   #:transparent)
  22.  
  23. (struct dxf-arc dxf-entity
  24.   (x y radius start end)
  25.   #:transparent)

=>