pawn-lang / samp-stdlib

The San Andreas Multiplayer Pawn Standard Library Package - designed for the sampctl package management system.
http://sampctl.com
47 stars 31 forks source link

Type safety #15

Open Y-Less opened 5 years ago

Y-Less commented 5 years ago

I think we need WAY more tags everywhere. Not for master, but definately as an option. Like Pickup:, Object:, Vehicle: etc. Even tags for things that are often confused, like ColourRGBA: vs. ColourARGB: etc.

Southclaws commented 5 years ago

Totally agree. Maybe it could be in master but behind some preprocessor flags, thoughts?

IS4Code commented 5 years ago

How would you deal with multiple scripts/libraries referencing the standard library with different settings? If the main script turned this on, would all libraries still be able to use the functions without warnings?

Southclaws commented 5 years ago

I'm not sure, the streamer has the same issue. I'm all for tags and quite a few people are, but it would require some kind of general consensus.

Maybe this can be resolved with a warning push/pop method?