WurstScript icon indicating copy to clipboard operation
WurstScript copied to clipboard

Allow to reference names from other packages explicitly

Open peq opened this issue 10 years ago • 4 comments

It should be possible to write Blub.foo() to reference the function foo in package Blub.

peq avatar Apr 21 '14 11:04 peq

Maybe this is a a bad idea, because the dependencies of a package would no longer be visible by just looking at the imports...

peq avatar Apr 22 '14 21:04 peq

Will implement this, but Blub.foo will only be available if package Blub was imported.

peq avatar Aug 10 '18 21:08 peq

That sounds great!

DoctorRyner avatar Aug 10 '18 21:08 DoctorRyner

So what then do existing public class members look like? Blub.Blub.foo?

That's certainly a pattern I've seen for vjass->wurst translated code

Cokemonkey11 avatar Aug 14 '18 07:08 Cokemonkey11