Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate new structs for messages. #71

Merged
merged 1 commit into from
Feb 4, 2015
Merged

Generate new structs for messages. #71

merged 1 commit into from
Feb 4, 2015

Conversation

kaeluka
Copy link
Contributor

@kaeluka kaeluka commented Feb 4, 2015

There's one struct for oneway msgs and one struct for future-msgs
each.

This encore method in class Foo

def bar(x:int, y:string) {...}

will generate:

struct ___encore_Foo_bar_fut_msg
{
  encore_fut_msg_t msg;
  int64_t x;
  char* y;
};

struct ___encore_Foo_bar_oneway_msg
{
  encore_msg_oneway_t msg;
  int64_t x;
  char* y;
};

There's one struct for oneway msgs and one struct for future-msgs
each.

This encore method in class `Foo`

    def bar(x:int, y:string) {...}

will generate:

    struct ___encore_Foo_bar_fut_msg
    {
      encore_fut_msg_t msg;
      int64_t x;
      char* y;
    };

    struct ___encore_Foo_bar_oneway_msg
    {
      encore_msg_t msg;
      int64_t x;
      char* y;
    };
TobiasWrigstad added a commit that referenced this pull request Feb 4, 2015
Generate structs for messages conforming to the new PonyRT
@TobiasWrigstad TobiasWrigstad merged commit f41b8a8 into parapluu:new-ponyrt Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants