Home Comments

Adding docstrings to generated code?

HanHan Member Han GenuitOrganization: FOM RijnhuizenProject: Database for Magnum PSI (plasma research).
Hi,

With slice2html, it is possible to generate documentation from .ice files, but I was wondering if it would be possible to add the same kind of functionality to other slice generators?
It would be nice to have the docstrings from .ice files for functions and classes also as docstrings for functions and classes in the generated code. This could be useful for interactive help on clients for instance.

(I'm thinking Python here, but it might also apply to other languages?)

Regards,
Han

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    With Ice 3.4b slice comments are preserved in the generated code with the Java, C# and Python Slice compilers. You should give it a try.
  • HanHan Member Han GenuitOrganization: FOM RijnhuizenProject: Database for Magnum PSI (plasma research).
    Ah, I see, nice! :D
Sign In or Register to comment.