Results 1 to 3 of 3

Thread: slice2html - forward declarations issue

  1. #1
    kwaclaw is offline Registered User
    Name: Karl Waclawek
    Organization: Personal
    Project: Whiteboard application
    Join Date
    Sep 2004
    Location
    Oshawa, Canada
    Posts
    159

    slice2html - forward declarations issue

    It seems slice2html cannot handle forward declarations. The following slice compiles fine for C#, Java or C++, but slice2html returns "test.ice:7: `two' is not defined".

    Code:
    module test {
    
    interface two;  //forward
    
    interface one {
      void do();
      two* getTwo();
    };
    
    interface two {
      void do();
    };
    
    };
    Karl
    Karl Waclawek

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    Thanks for the report.

  3. #3
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Quote Originally Posted by kwaclaw View Post
    It seems slice2html cannot handle forward declarations. The following slice compiles fine for C#, Java or C++, but slice2html returns "test.ice:7: `two' is not defined".
    Code:
    interface two;  //forward
    This is caused by a bug in mcpp. It produces

    Code:
    //forward interface two;
    as the preprocessed output.

    As a work-around, you can move the comment onto a separate line, or you can rewrite this as

    Code:
    interface two; /* forward */
    With a C-style comment, mcpp gets it right.

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ICE-3.2.1 Glacer2 SSL Context forward issue
    By peterlspot in forum Help Center
    Replies: 1
    Last Post: 12-08-2007, 10:49 AM
  2. ICE forward decls
    By PeteH in forum Help Center
    Replies: 5
    Last Post: 09-20-2007, 04:43 PM
  3. slice2html and constants
    By mspycher in forum Help Center
    Replies: 2
    Last Post: 09-19-2007, 06:27 PM
  4. slice2html missing
    By UserXYZ in forum Help Center
    Replies: 0
    Last Post: 05-04-2007, 01:04 PM
  5. Forward referencing interfaces in slice
    By Nis Baggesen in forum Help Center
    Replies: 2
    Last Post: 09-21-2004, 02:03 AM

Posting Permissions

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