Jump to content
  • Advertisement
  • entries
  • comments
  • views

Tangent: Visibility

Sign in to follow this  


Sorry for the lack of updates. My car died the end of last week, so a lot of my time went to procuring and then enjoying a new car. To be honest, mostly to the enjoyment; buying it was quick and painless. 2009 Impreza 5-door (non-WRX) for those curious. It is a retired rental car, so I got it at a steep(~$5k) discount in exchange for it having ~9000 miles on it.

Today though I started a new batch of work on Tangent. In previous revisions, the language pretty much ignored visibility (public, private, etc). So today's work was a start down the road towards correcting that. Unfortunately, that sort of thing touches code everywhere. Worse yet, looking back at some of the code and thinking about it, I realized that method groups weren't being dealt with properly with regards to visibility. So there's that.

The other thing that needed to be done was being more intelligent regarding variable storage. A co-worker of mine pointed out that private variables shouldn't cause trouble if inherited. They should be invisible with pretty much every regard to the inheriting class.

This makes sense, but was not something I had in mind when devising the type system for the language. Inheritance just takes the definitions within the base class and imports them up to the inheritor. Definitions with the same name got mixed to provide the superset of the two. That breaks down when the two definitions should be totally distinct values...

The work today is taking allowing that private variable isolation. It is mostly done, just some initializer quirks to clean up.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!