[dylan-lang/opendylan] c0e551: [dylan] Add type-union-members, classify-type-unio...

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

  Changed paths:
    M sources/dfmc/modeling/namespaces.dylan
    M sources/dylan/union.dylan

  Log Message:
  -----------
  [dylan] Add type-union-members, classify-type-union.

These are helper methods that are useful when printing or displaying
type union types.

* sources/dylan/union.dylan
  (<type-union-classification>): New type / constant.
  (classify-type-union): New method.
  (type-union-members): New method.


  Commit: 2d9782f2a71b7b9ae9d163dcbf76d6fa9e037381
      https://github.com/dylan-lang/opendylan/commit/2d9782f2a71b7b9ae9d163dcbf76d6fa9e037381
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M sources/io/print.dylan
    M sources/io/tests/print.dylan

  Log Message:
  -----------
  [io] Improve display of specializer types.

* sources/io/print.dylan
  (print-specializer on <limited-integer>): Rewrite to match the
    actual syntax for a limited integer.
  (print-specializer on <union>): Rewrite to match the canonical
    representation of the type union, typically how it was entered
    in the code.

* sources/io/tests/print.dylan
  (function-test print-to-string): Call new test-print-types.
  (constant $type-printing-tests): Set up the data for a number of
    type printing tests.
  (test-print-types): Using the data in $type-printing-tests, validate
    that it is all correct.
  (test-print-miscellaneous): Remove some now duplicated checks since
    we're doing more robust display testing of types elsewhere.


  Commit: d033208932d69ec0384ecc4d242d5b80f2d75f61
      https://github.com/dylan-lang/opendylan/commit/d033208932d69ec0384ecc4d242d5b80f2d75f61
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M sources/common-dylan/format.dylan
    M sources/common-dylan/tests/functions.dylan

  Log Message:
  -----------
  [common-dylan] Improve printing of method signatures.

* sources/common-dylan/format.dylan
  (print-method): Fix bugs: handle not having keywords
    correctly, don't display <object> for a #rest value type,
    as well as handling #all-keys.
  (print-specializer on <union>): New method to do nice display
    of type unions.

* sources/common-dylan/tests/functions.dylan
  (function-test format-to-string): Call new test function
    format-function-tests.
  (test-print-1, test-print-2,
   test-print-3, test-print-4,
   test-print-5, test-print-6,
   test-print-7, test-print-8,
   test-print-9, test-print-10): New generics and methods for testing
    printing of signatures.
  ($format-function-mappings): Data to drive testing of signature
    printing.
  (format-function-tests): Test printing methods with proper signatures.


  Commit: d6e09dc9061190c4656cd6a4489fe28d1f52dbfa
      https://github.com/dylan-lang/opendylan/commit/d6e09dc9061190c4656cd6a4489fe28d1f52dbfa
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M sources/common-dylan/format.dylan
    M sources/common-dylan/tests/functions.dylan

  Log Message:
  -----------
  [common-dylan] Print limited integer specializers.

* sources/common-dylan/format.dylan
  (print-specializer on <limited-integer>): Implement custom / correct
    display of limited integers.

* sources/common-dylan/tests/functions.dylan
  (test-print-11): New test generic and function for limited integer
    specializer printing test.
  ($format-function-mappings): Add a test for test-print-11 and limited
    integer specializer printing.


  Commit: e793435ecf2225eb5e16cf198a31c2068c37f215
      https://github.com/dylan-lang/opendylan/commit/e793435ecf2225eb5e16cf198a31c2068c37f215
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M sources/io/print.dylan

  Log Message:
  -----------
  [io] print-object can use all of the custom specializer printers.

* sources/io/print.dylan
  (<types-with-specializer-printing>): New constant type union that
    lists all types that have custom print-specializer methods.
  (print-object): Modify the method on a type-union of types to use
    the new more comprehensive <types-with-specializer-printing>.


  Commit: 0aafb88aeda1136752c1a3c993108bb4be4f6ad6
      https://github.com/dylan-lang/opendylan/commit/0aafb88aeda1136752c1a3c993108bb4be4f6ad6
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M sources/io/tests/print.dylan

  Log Message:
  -----------
  [io] Test subclass() specializer printing.

* sources/io/tests/print.dylan
  ($type-printing-tests): Add test for subclass() printing.


  Commit: 2ab06e97ce39132d16847245154bfff838f0a5ae
      https://github.com/dylan-lang/opendylan/commit/2ab06e97ce39132d16847245154bfff838f0a5ae
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-07-20 (Mon, 20 Jul 2015)

  Changed paths:
    M sources/common-dylan/format.dylan
    M sources/common-dylan/tests/functions.dylan

  Log Message:
  -----------
  [common-dylan] Print limited collection specializers.

* sources/common-dylan/format.dylan
  (print-specializer on <limited-collection-type>): Implement custom / correct
    display of limited collections.

* sources/common-dylan/tests/functions.dylan
  (test-print-12): New test generic and function for limited collection
    specializer printing test.
  ($format-function-mappings): Add a test for test-print-12 and limited
    collection specializer printing.


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

  Changed paths:
    M sources/common-dylan/format.dylan
    M sources/common-dylan/tests/functions.dylan
    M sources/dfmc/modeling/namespaces.dylan
    M sources/dylan/union.dylan
    M sources/io/print.dylan
    M sources/io/tests/print.dylan

  Log Message:
  -----------
  Merge pull request #942 from waywardmonkeys/type-display

Type display for limited integers and type unions


Compare: https://github.com/dylan-lang/opendylan/compare/21ea90dbec75...c89d1909c4be

_______________________________________________
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.