[dylan-lang/opendylan] 8fb541: [io] Improve support for print-object on functions...

GitHub <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <55a68ba6accda_16b23f80d4f5f2a035236@hookshot-fe5-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/opendylan
  Commit: 8fb5411834e6126c1892b1df92ede48ebec91b21
      https://github.com/dylan-lang/opendylan/commit/8fb5411834e6126c1892b1df92ede48ebec91b21
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-15 (Wed, 15 Jul 2015)

  Changed paths:
    M sources/dfmc/modeling/namespaces.dylan
    M sources/io/print.dylan
    M sources/io/tests/print.dylan

  Log Message:
  -----------
  [io] Improve support for print-object on functions.

* sources/dfmc/modeling/namespaces.dylan
  (module dylan-extensions): Export signature-values, signature-keys,
    and signature-rest-value.

* sources/io/print.dylan
  (print-object on <generic-function>): Print the signature, not just the
    name.
  (print-object on <method>): Use print-signature to print the signature
    and stop putting an extra logical block with () around it.
  (print-function-specializers): Rename to print-signature.
  (print-signature on <function>): Gather the data for the signature
    and pass it along to print-signature-internal.
  (print-signature on <signature>): Gather the data for the signature
    and pass it along to print-signature-internal.
  (maybe-copy-sig-types): Internal copy of a function that is internal
    to the Dylan library for getting the correct vector of types
    from a signature.
  (print-signature-internal): Handle actually printing the signature
    data in all of its complexity.
  (print-keyword): Utility function to improve printing keyword arguments
    in the signature.

* sources/io/tests/print.dylan
  (function-test print-to-string): Call new test-print-functions.
  (test-print-functions): Test the new signature printing code.
  (test-print-1, test-print-2,
   test-print-3, test-print-4,
   test-print-5, test-print-6): New functions to set up various
    signatures for printing.


  Commit: 242c57fd308d6322811d65f7b065b8e08b997c04
      https://github.com/dylan-lang/opendylan/commit/242c57fd308d6322811d65f7b065b8e08b997c04
  Author: Peter S. Housel <[email protected]>
  Date:   2015-07-15 (Wed, 15 Jul 2015)

  Changed paths:
    M sources/dfmc/modeling/namespaces.dylan
    M sources/io/print.dylan
    M sources/io/tests/print.dylan

  Log Message:
  -----------
  Merge pull request #941 from waywardmonkeys/io-print-functions

[io] Improve support for print-object on functions.


Compare: https://github.com/dylan-lang/opendylan/compare/3e44bc1c1a4d...242c57fd308d

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.