) type ( Imp struct { surname, firstName *text.Imp fm *tval.Imp // True == f, False == m bd *day.Imp ti *enum.Imp fmt Format } ) var ( bx, shbx *box.Imp = box.New(), box.New() pbx = pbox.New() ) func (x *Imp) imp(Y Object) *Imp { // y, ok := Y.(*Imp) if !ok { TypeNotEqPanic(x, Y) } return y } func New() *Imp { // x := new(Imp) x.surname = text.New(lenName)
nDigits = 7 // höchstens 9.999.999 Euro length = nDigits + 1 /* Komma */ + 2 ) type ( Imp struct { cent uint cF, cB col.Colour fo font.Font } Texte [length]byte ) var ( bx *box.Imp = box.New() pbx *pbox.Imp = pbox.New() ) func (x *Imp) impc(Y Any) uint { // y, ok := Y.(*Imp) if !ok { TypeNotEqPanic(x, Y) } return y.cent } func New() *Imp { // x := new(Imp) x.Clr()