Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Make inside-out hashes our instead of my #166

Open
kthakore opened this Issue · 1 comment

1 participant

Kartik Thakore
Kartik Thakore
Owner

Because Perl offers an easy way to modify a module from outside its file, it is a bad idea to make all of the hashes for inside-out structures scoped to the file. If I wanted to make a quick change to an SDLx module that is inside-out, I would have to go in and edit the file. Then when I distribute my game, I have to provide the entire file of the module I have edited, when I may have only slightly changed one of the subs. If the inside-out hashes were package-scoped, everything would work:

package SDLx::Surface;
no warnings "redefine";
sub blit {
redefinition . . .
I have access to package-scoped vars, but not file-scoped ones
}

Any reason not to change it?

Kartik Thakore
Owner

Author: ruoso
Time: 1285525109
Field: comment
Value: No... I don't see a problem in changing "my" to "our".... But I wonder why you would need such a weird hack, can't you use the accessors?

daniel

Kartik Thakore kthakore was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.