I've added support for partial classes like what is seen in C# and VB. As with C#, both instances of the class must be marked with "partial".
I'll be using this in the compiler itself to push out the C# code generation to a separate file as part of a refactoring to make way for other code generation backends such as CIL, Java, Objective-C, etc.
Forums
Partial classes and structs
5 posts
• Page 1 of 1
Re: Partial classes and structs
Pushing the sharpGenerator code out seems to have uncovered a bug related to partial classes and method overloading
( see ticket:40).
Can see it if try to recompile the cobra source with a newly built compiler
( see ticket:40).
Can see it if try to recompile the cobra source with a newly built compiler
comp.bat
cp cobra.exe cobraNu.exe
cobraNu.exe -compile -color -debug -timeit $* -files:files-to-compile.text
- hopscc
- Posts: 632
- Location: New Plymouth, Taranaki, New Zealand
Re: Partial classes and structs
Thanks for the report. I'll take a look.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Partial classes and structs
Fixed. Although now there is a different bug revealed, but I'll take a look at that as well.
Also, I added .bat files "make-trial" and "comp-trial". These already existed for the unix side.
Also, I added .bat files "make-trial" and "comp-trial". These already existed for the unix side.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
Re: Partial classes and structs
Okay, I fixed the other bug which was related to properties in partial classes. Both bugs are covered by the regression test cases.
I also checked in a new snapshot of the compiler.
I also checked in a new snapshot of the compiler.
- Charles
- Posts: 2515
- Location: Los Angeles, CA
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests