some questions
BlitzMax Forums/BlitzMax Beginners Area/some questions
| ||
Hello there! im currently working on a program wich amongst others involves problem-tree solution. Now i have some questions.. When i pass an object as an argument to a function or method, is a new copy of that object created or is is just a reference that is getting passed ? How do i do to create a copy of an object instead of passing references ?? |
| ||
When i pass an object as an argument to a function or method, is a new copy of that object created or is is just a reference that is getting passed ? A reference. Objects are always passed by reference. How do i do to create a copy of an object instead of passing references ?? Manually, copying fields as you go. Or wait until Mark gives us some kind of reflection for BMax objects and you can do it without copying all the fields manually. |
| ||
thanks! now i know... that kinda sucks... or its just me wining because the last project i did was in C# & XNA... hehe |
| ||
I have another question if someone knows.. I checked around in the Code Archives but couldnt find what i was looking for... Has someone put together a bunch of standard datastructures like stack, bintree, hashtable, heap.. ? That would be handy.. |
| ||
Look more in code archives :-) All data structures you are looking are in code archives. Bye, Paposo |
| ||
bintree is already in, its called BRL.MAP :) (red black like tree) |
| ||
Is there a way to play simple notes and "beep-music" ? In an ancient basic it would have been ' PLAY"c3e3d4eef5g5" or something like that. How is it done with BlitzBasic ? |
| ||
You might want to start your own thread since this is an unrelated problem. In help, go to Module Reference, and look at Audio. The sound must be stored in a file such as wav or mp3. |