1022
you are viewing a single comment's thread
view the rest of the comments
[-] AVincentInSpace@pawb.social 9 points 7 months ago

What does "private method" mean in this context? Did you make use of an undocumented endpoint of the iOS API?

[-] firelizzard@programming.dev 3 points 7 months ago

Objective-C does not enforce method access (e.g. private methods) at the runtime level. If you are sufficiently determined, there are no restrictions on what methods you can call, unlike Java or C# (AFAIK).

[-] AVincentInSpace@pawb.social 4 points 7 months ago

Java absolutely lets you do that with Reflections. You're not supposed to, and it's painfully slow, but the JVM is only marginally smarter than javac (and that's saying something) so there's nothing actually stopping you.

[-] humbletightband@lemmy.dbzer0.com 1 points 7 months ago

If you are determined enough, it's not that slow ๐Ÿ˜‰

load more comments (2 replies)
load more comments (2 replies)
load more comments (3 replies)
this post was submitted on 24 Mar 2024
1022 points (99.2% liked)

Programmer Humor

19397 readers
98 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS