Restored from previous forum. Originally posted by tinman.
Originally posted by Danilo
__PLEASE__ dont limit other users because you think you cant
read the code anymore.
If you read the source, the macros must be included - otherwise
the code cant compile (unknown command).
I agree with you but the first time I wrote my reply my internet connection went down, and the second version of my reply came out wrong
I don't want to see PB limiting users as that would (possibly) also limit me. I think macros are very much of a high requirement, and what people do with them is up to them. I don't think a command specifically for aliasing command names is a good idea.
Sure, you can say 'OpenScr' is faster than 'OpenScreen(...,...,...,etc)' but at what point does your code become unrecognisable? Yes, all the macros will be in their code (although how many times do we see people posting incomplete code?), but are you saying that you would be willing to look through someone's macro definitions which redefines *all* PB commands to their own names and parameters in case the bug is there? (Yes, I know it's unlikely someone would redefine all the commands, but they could.)
You've also picked a sensible name for your macro. What about the people who don't - their code will be more difficult to read.
I'm not saying macros or redefining commands is a bad thing, but I don't think it needs to be actively supported by specific commands. I guess it's all relative whether you see this kind of thing a hassle at some point or not at all.
PB - You know you could just have your program as an external tool that gets called before the compiler runs over the source, using the new editor? In the tools menu. Update: Oops, I thought you could get tools to run automatically before compiling, but I had a look at the tolls editor and it looks like the user would still need to manually run the tool before compiling.
--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + all updates, PB3.50)