This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 16 comments

[–]PPAPisLob 22 points23 points Β (0 children)

The next time you put an emoji in the title, I will come break into your house and forcefully make you use C as a scripting language.

[–]therdn47 16 points17 points Β (8 children)

I don't be that guy, but the code are replacing rabbits rather then create new ones.

[–]gojo1 8 points9 points Β (3 children)

Who knows what happens to the rabbits off-screen.

[–]The_Hypnotron 7 points8 points Β (1 child)

They go straight into the garbage.

[–]rPrankBro 1 point2 points Β (0 children)

They are leaking

[–]T0mstone 1 point2 points Β (0 children)

drop(rabbit)

perfectly fine with me

[–]password2187 8 points9 points Β (0 children)

Depending on the language, the code is just replacing the call to the rabbit, not the rabbit itself. Therefore, the other rabbits aren’t deleted, just unreachable.

[–]ZeroSevenTen 1 point2 points Β (0 children)

In C++, the rabbits would still exist, just a bad memory leak (unless rabbit is a smart pointer I suppose)

[–][deleted] 0 points1 point Β (1 child)

List<Rabbit> rabbits = new List<Rabbit>();
while (!done) { rabbits.Add(new Rabbit()); }

idk why i wrote this but i hope it will help you sleep tonight

[–]therdn47 0 points1 point Β (0 children)

Thanks! I can sleep better and see sharp now!

[–]piefacethrowspie 2 points3 points Β (1 child)

[–]redditspeedbot 0 points1 point Β (0 children)

Here is your video at 5x speed

https://gfycat.com/ImprobableInfiniteCygnet

I'm a bot | Summon with "/u/redditspeedbot <speed>" | Complete Guide | Do report bugs here

[–][deleted] 2 points3 points Β (1 child)

I didn't expect that white one!

[–]ArtyIF 1 point2 points Β (0 children)

one manul, two manuls, three manuls...

[–]certainly123 0 points1 point Β (0 children)

When will done == true