TYPE --man may be broken

Using the Pt_t example provided in the TYPES file but extending it to 
include an extra discipline method i.e.

typeset -T Pt_t=(
   float -h 'length in inches' x=1
   float -h 'width in inches' y=0
   integer -S count=0

   area()
   {
        print -r $(((_.x*_.y)/2))
   }
   len()
   {
        print -r $((sqrt(_.x*_.x + _.y*_.y)))
   }
   set()
   {
        (( _.count++))
   }
)

The output from Pt_t --man for the DETAILS section is as follows:

DETAILS
  Pt_t defines the following fields:
          string.
    x     long exponential, default value is 1.
    y     long exponential, default value is 0. Length in inches.
    count shared long integer. Width in inches.

  Pt_t defines the following discipline methods:
    area

EXIT STATUS

Note that only the first discipline method (area) is listed.
Note also the hanging text "string." under "Pt_t defines the following fields"


_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to