PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can't name class Random?

I have a class named Random.

It works fine on the PC, but when I try to build it for Pocket PC in eVC3, I get lots of compile errors. Changing the class name to something else fixes everything.

Anyone know what other Random is clashing with my class name?

Normally I use namespaces for my things but in this project I haven't. I'm just not a big fan of having to hide all my own code in namespaces just to use reasonable names.


Instead of using namespaces just to allow name use, how about using namespaces to logically organize classes? Allowing you to use the names you want would then be just a side effect of it.

But then again, I completely agree on small projects. If all you're going to do is hide all of your classes behind a single namespace, then why bother with it?
Yes I use namespaces to logically organize large projects, it's just that this is a small project.