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

Get rid of messages.register() #14

Open
0xE111 opened this issue Dec 2, 2019 · 3 comments
Open

Get rid of messages.register() #14

0xE111 opened this issue Dec 2, 2019 · 3 comments

Comments

@0xE111
Copy link
Owner

0xE111 commented Dec 2, 2019

Per https://forum.nim-lang.org/t/3199

@0xE111 0xE111 added this to the v1.0 milestone Dec 2, 2019
@0xE111
Copy link
Owner Author

0xE111 commented Dec 7, 2019

May be helpful: https://forum.nim-lang.org/t/4545

@0xE111
Copy link
Owner Author

0xE111 commented Dec 9, 2019

template typedef(name: untyped, typ: typedesc) =
  type
    `T name`* {.inject.} = typ
    `P name`* {.inject.} = ref `T name`

typedef(myint, int)
var x: PMyInt

In the example name is instantiated with myint, so T name becomes Tmyint.

@0xE111
Copy link
Owner Author

0xE111 commented Dec 19, 2019

@0xE111 0xE111 removed this from the v1.0 milestone Jul 31, 2023
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

No branches or pull requests

1 participant