![]() Jun 22 2005, 7:49 am
In response to Crashed
|
|
It was about three years ago (maybe longer) and I'm not even sure it was documented, I'm just going on what Dan told me. He said if you used view() without arguments (or anything with a usr default) it would default to whatever is calling the proc/verb/whatever instead of usr.
|
Mmmm... well, okay, but I wouldn't rely on that behaviour since there's no real way for us to test if it works properly.
Actually, there is; set usr to null and call view() without arguments, and see if it returns view(usr) (which should be an empty list) or view(src). |
For this sort of thing, I would guess that you could simply use a combination of bump and call, right?
RD |
> atom/movable You probably want to be able to bump into things which aren't movable also :P. |
You could, but that would be a bad idea. The call function is another one of those rarely needed things that gets abused so much, like goto and the : operator.
Just like those other things, if you don't know when to use call, don't use it at all. It would benefit you much more to learn how to do things properly. |
Loduwijk wrote:
You could, but that would be a bad idea. The call function is another one of those rarely needed things that gets abused so much, like goto and the : operator. I agree. I've only used : once, and I don't think I've ever used goto. I don't like call, I had a problem with it not doing what I thought it was supposed to do, so I just started avoiding it. |
Well, if it is used often enough for there to be tons of threads, wouldn't it make since to hardcode it into BYOND?
|