Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-compiler
Commits
4de648a2
Commit
4de648a2
authored
Mar 20, 2024
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix class creation
parent
6e8e1738
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
typon/trans/tests/gen_func.py
typon/trans/tests/gen_func.py
+1
-1
typon/trans/transpiler/phases/emit_cpp/class_.py
typon/trans/transpiler/phases/emit_cpp/class_.py
+2
-4
No files found.
typon/trans/tests/gen_func.py
View file @
4de648a2
...
...
@@ -22,4 +22,4 @@ if __name__ == "__main__":
# print(g("abc", 213)) # expected error
print
(
H
().
h
(
6
))
Box
(
6
)
\ No newline at end of file
#Box(6)
\ No newline at end of file
typon/trans/transpiler/phases/emit_cpp/class_.py
View file @
4de648a2
...
...
@@ -55,10 +55,8 @@ def emit_class(name: str, node: ConcreteType) -> Iterable[str]:
yield
"template <typename... T>"
yield
"auto operator() (T&&... args) const {"
yield
"Obj obj;"
yield
"dot(obj, __init__)(std::forward<T>(args)...);"
#yield "return referencemodel::rc(Obj(std::forward<T>(args)...));"
yield
"return referencemodel::rc(obj);"
yield
"return referencemodel::rc(Obj(std::forward<T>(args)...));"
yield
"}"
yield
f"}};"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment