Menu

#246 Object doc-comments not preserved

Need_by_1.0
closed-fixed
edoc (4)
4
2005-07-24
2005-07-18
No

FIXED
At
http://www.eros-os.org/pipermail/e-lang/2004-April/009753.html
:

1. Doc-comments for objects are not returned in the
alleged type.

2. help() does not print the object doc-comment.

? /** foo */ def x {}
# value: <x>

? x.__getAllegedType().getDocComment()
# value: " Missing docComment"

? /** foo */ def y() :void {}
# value: <y>

? y.__getAllegedType().getDocComment()
# value: " Missing docComment"

? help(y)
<output not including "foo" or " Missing docComment">

Followups

Comment Date By
To reduce cases, while fixing this, I also "fixed" help
so that it prints using the interface declaration
syntax, rather than its own.

? /** foo */ def x {}
# value: <x>

? x.__getAllegedType().getDocComment()
# value: " foo "

? /** foo */ def y() :void {}
# value: <y>

? y.__getAllegedType().getDocComment()
# value: " foo "

? help(y)
# value: an org.erights.e.elang.evm.EImplByProxy
# /**
# * foo
# */
# interface "__main$y__C" {
#
# /**
# * Invoke as a function
# */
# to run() :any
# }
#
2004-Jul-03 22:20 markm

Discussion

  • Steve Jenson

    Steve Jenson - 2005-07-18
    • status: open --> open-fixed
     
  • Steve Jenson

    Steve Jenson - 2005-07-18
    • status: open-fixed --> closed-fixed
     
  • Mark Samuel Miller

    • assigned_to: nobody --> caplet
     

Log in to post a comment.