Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Java invoker

Name: Anonymous 2012-12-01 19:13

In Java, is it possible to get the invoker of a class? I am trying to create two classes simultaneously but I want them to reference each other, preferably upon creation(constructors) if possible. I know I can sort of do it by returning the stack trace, but this doesn't exactly seem... proper. Any ideas /prog/?

Name: Anonymous 2012-12-01 19:53

>>12

That's really helpful. So perhaps, instead of worrying about the constructors so much(Looking back, I'm not sure why I was "obsessed" with them doing all the referencing, most likely due to it being automatic as you mentioned before), simply use functions that handles the logic of referencing them instead, probably calling them within the main().

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List