Results 1 to 3 of 3

Thread: Adding docstrings to generated code?

  1. #1
    Han
    Han is offline Registered User
    Name: Han Genuit
    Organization: FOM Rijnhuizen
    Project: Database for Magnum PSI (plasma research).
    Join Date
    Mar 2009
    Posts
    6

    Question Adding docstrings to generated code?

    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

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    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.
    Dwayne Boone

  3. #3
    Han
    Han is offline Registered User
    Name: Han Genuit
    Organization: FOM Rijnhuizen
    Project: Database for Magnum PSI (plasma research).
    Join Date
    Mar 2009
    Posts
    6
    Ah, I see, nice!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. uncompilable code generated by slice2cpp
    By srxavi in forum Bug Reports
    Replies: 6
    Last Post: 03-26-2010, 11:44 AM
  2. slice2cpp generated code and Ice versions
    By phil++ in forum Help Center
    Replies: 1
    Last Post: 08-01-2008, 02:41 PM
  3. Generated C# code indentation
    By kwaclaw in forum Comments
    Replies: 1
    Last Post: 11-24-2006, 11:58 AM
  4. C# code generated for comparison methods
    By kwaclaw in forum Comments
    Replies: 3
    Last Post: 10-11-2005, 01:54 PM
  5. assert() in slice2java generated code?
    By SteveWampler in forum Help Center
    Replies: 2
    Last Post: 04-13-2004, 01:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •