[dylan-foundry/posix-sockets] 4dfce5: [posix-sockets] Move bindings code to separate fil...

GitHub <[email protected]> Tue, 24 Nov 2015 18:17:52 -0800
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <56551a5069b89_35a3ffc1039b2b8179131@hookshot-fe3-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-foundry/posix-sockets
  Commit: 4dfce5d663a6b26ce2348ae51122165989f78d88
      https://github.com/dylan-foundry/posix-sockets/commit/4dfce5d663a6b26ce2348ae51122165989f78d88
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-25 (Wed, 25 Nov 2015)

  Changed paths:
    A posix-sockets/bindings.dylan
    M posix-sockets/posix-sockets.lid
    A posix-sockets/socket.dylan
    R posix-sockets/sockets.dylan

  Log Message:
  -----------
  [posix-sockets] Move bindings code to separate file.

* posix-sockets/sockets.dylan: Moved bindings to posix-sockets/bindings.dylan
  and renamed this file to posix-sockets/socket.dylan

* posix-sockets/posix-sockets.lid: Build socket.dylan and bindings.dylan
  rather than the old sockets.dylan.


  Commit: 8a22ff70262d600cb3d671ffd945acc0fa78ee2b
      https://github.com/dylan-foundry/posix-sockets/commit/8a22ff70262d600cb3d671ffd945acc0fa78ee2b
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-11-25 (Wed, 25 Nov 2015)

  Changed paths:
    M posix-sockets/bindings.dylan
    M posix-sockets/module-posix-sockets.dylan
    M posix-sockets/socket.dylan

  Log Message:
  -----------
  [posix-sockets] Add <bound-socket>, <server-socket>.

Adding additional subtypes for socket states lets us improve
the safety of the API by letting the type system verify that
some invariants have been satisfied.

Using subtypes as we don't have other ways to express this in
Dylan currently.

* posix-sockets/socket.dylan
  (<bound-socket>, <server-socket>): New subclasses.

* posix-sockets/bindings.dylan
  (bind): Return an instance of <bound-socket>.
  (listen): Require an instance of <bound-socket>, return an
   instance of <server-socket>.
  (accept): Require an instance of <server-socket>.

* posix-sockets/module-posix-sockets.dylan
  (module posix-sockets): Export <bound-socket>, <server-socket>.


Compare: https://github.com/dylan-foundry/posix-sockets/compare/50bb8e8d22ae...8a22ff70262d

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter