Project

General

Profile

Support #208

describe $package

Added by Anna Maria Bigatti almost 12 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Parser/Interpreter
Target version:
Start date:
11 Jul 2012
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

Functions("$binrepr"); from CoCoA-4 doesn't work and has been replaced by
describe ("$binrepr"); (as the error message helpfully says)
so
- fix the manual
- write the exported functions first and then the rest
(should be easy...)


Related issues

Related to CoCoA-5 - Feature #346: Describe should indicate package nameClosed2013-04-29

History

#1 Updated by John Abbott almost 11 years ago

Why is the package called BinRepr but the main exports are called BinExp?

AMB: moved to #354

#2 Updated by John Abbott about 10 years ago

The relevant source code is in Interpereter.C:233

void PackageValue::describe(intrusive_ptr<OutputStreamValue> out) const...

#3 Updated by John Abbott about 10 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

I think I've corrected the code so that exported names appear first.
Will check after lunch.

#4 Updated by John Abbott about 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 20 to 60

The modified impl seems OK to me.

I have modified the CoCoA-5 doc too: Functions is now marked as obsolete;
describe hints at what it does for packages (I deliberately wanted to remain vague, since exactly what is printed might change in the future).

One thing did (does?) puzzle me: with package $binrepr it seems that the two exported names (BinExp and EvalBinExp) did not appear in the list of member names; however, with package $chebyshev the exported names appeared also in the list of member names. Why? Which is correct?

I have modified the code so that exported names are not listed along with the "also has" names... Strictly the code I've written is not quite correct :-/

#5 Updated by John Abbott about 10 years ago

Anna could you check that this now does more or less what you want; if so, change state to feedback?

#6 Updated by Anna Maria Bigatti about 10 years ago

  • Target version set to CoCoA-5.1.0 Easter14

#7 Updated by John Abbott about 10 years ago

Anna will check the manual!

#8 Updated by John Abbott almost 10 years ago

I suggest moving Functions (currently built-in!?!) to the package obsolete.cpkg5

20140508 OK done this (after getting Anna's approval)

#9 Updated by John Abbott almost 10 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 60 to 100

It seems OK now (Anna's happy too), so closing.

Also available in: Atom PDF