Thanks to a patch from hops, we now have namespace aliasing. Please test it out.
Examples:
http://cobra-language.com/trac/cobra/br ... lias.cobra
http://cobra-language.com/trac/cobra/br ... lass.cobra
Ticket:
http://cobra-language.com/trac/cobra/ticket/201
Installation instructions:
HowToInstallFromSource
Forums
Namespace aliasing
5 posts
• Page 1 of 1
Re: Namespace aliasing
Hey, this is cool. Is this really just for namespaces though? It looks like you can alias types as well unless I'm not reading the examples correctly.
- nerdzero
- Posts: 286
- Location: Chicago, IL
Re: Namespace aliasing
It feeds into the C# alias handling so if that doesnt handle what you are seeing I've probably screwed up the examples
( though I thought I'd run all them)....
( though I thought I'd run all them)....
- hopscc
- Posts: 632
- Location: New Plymouth, Taranaki, New Zealand
Re: Namespace aliasing
Okay, well it looks like you can alias types in C# and VB with using/imports statements like you can with namespaces. I did not know that. So, it should work here too then. Looks a little strange to me to alias types that way but I'll take it
- nerdzero
- Posts: 286
- Location: Chicago, IL
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 32 guests