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:38

>>10

I think that this is it. I mean, I know I can reference it later but I guess I was just being pedantic. Thanks for your reply though, much appreciated. Essentially, I want this:

A references B.
B references A.

Probably would have been easier to state, but I digress. Could I be a pain and ask you to explain a bit further? Mainly about the logic of the program, and missing the point. I mean I understand what your saying, but still somewhat hazy.

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