this post was submitted on 23 Oct 2023
562 points (96.2% liked)
Programmer Humor
32568 readers
377 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You gotta allocate your GFs statically or this just keeps happening.
I tried to declare my GF global, but she became an astronaut, and I get linking errors
Mate, your GF is definitely global. I was able to access her just fine.... read AND write.
Plus you won't worry that you forget to free her
As low as my opinion on some exes may be, I still don't believe it's appropriate to mark them as candidates for garbage collection.
I'd add an imaginary boolean flag to the GF class and always have an initial GF where imaginary == True.
The struct and its CRUD functions seem to be all implemented. Problem is: The
Create
method is never be called.Might be a problem with the factory then.
*'^You gotta allocate you GF$'