things i dislike about bMax

BlitzMax Forums/BlitzMax Programming/things i dislike about bMax

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

In java, most of the time i call an object the same name of the class. Example : Map map = new Map();

That's only because Java is case-sensitive. You can't do Map Map = new Map(); , for example. BlitzMax is not type-sensitive.

Its not that simple. For example.. i have a Type called Map and there is LOTS of informations on that type. I also have lots of objets of the type Tile, and all of them need to access the Map object (and i dont wanna make anything global, cuz its make code messy and hard to expand/maintain).

In java, i just need to pass Map as a parameter to the tile construtor, and all of the tiles will have a reference to the same object Map. In Blitz, to do the same thing i MUST use pointers, otherwise each object tile will have a reference to diferent Map objects, and this will consume all my memory.

No you don't. BlitzMax works exactly like Java in that respect. Objects created with New are passed by reference, basic types (int, float etc.) are passed by value (unless you use Varptr or Var to obtain a pointer).