Re: SLASH should not be a builtin or constant

new topic     » goto parent     » topic index » view thread      » older message » newer message
scooby said...

I don't agree with Derek. Granted, I wouldn't want to encourage the use of global variables in any libs.

I don't think that there are any global symbols in the standard library in 4.0. I believe that they're all public.

scooby said...

If the scope and meaning of such constants were only relevant to the end-code, then this would not be an issue, but there is many third party libs that should also be affected by a platform_override() *HINT*.

I guess the hint is too subtle for me. What would platform_override() do?

scooby said...

How do you tell a 3rd party lib that it is supposed to use your application defined values?

If the 3rd party code is supposed to use application defined values, then it should have an API for doing so. I don't think you should try to pull the rug out from under a library by redefining things like the standard library, unless you're willing to go into the library and edit the code if anything breaks.

The point of the standard library is that it is standard, so if you decide to use it, you know what to expect.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu