Questions tagged [self-reference]

Self-reference is the ability of a program (or logical sentence) to refer to itself, either directly or indirectly.

Self-reference is the ability of a program (or logical sentence) to refer to itself, either directly or indirectly.

Useful Links:

Stanford Encyclopedia 'Self Reference' Entry

Related Tags:

596 questions
-1
votes
2 answers

delete parent row in a Self relationShip and one to many with two foreign-key constraints

I can't remove one of these relationships or change the ON DELETE CASCADE constraints. My questions are: In the Category table, How do I delete one parent row (a row that has children and its children as well) ? In the Product table, How to allow…
Bellash
  • 7,560
  • 6
  • 53
  • 86
-1
votes
1 answer

Python MVC architecture Temperature Conversion: Why am I getting "NameError: global name 'view' is not defined"

This isn't a difficult question, but I can't wrap my head around it when dealing with MVC architecture (passing arguments between the VIEW, MODEL, and CONTROLLER). Error in question: Exception in Tkinter callback Traceback (most recent call last): …
-2
votes
1 answer

Custom 'self' expression for functions

First of all, I'm super new to stackoverflow and don't really know a lot about how to ask questions and all, so please excuse any major mistakes I made. Anyways, I'm currently trying to create a way for functions to reference themselves. For that I…
Mr_HxID
  • 5
  • 1
  • 1
  • 4
-2
votes
2 answers

Why java cant infer right type with Self bound generic type in subclasses

Assume I have this code: class A { public THIS self() { return (THIS) this; } } class B extends A { } A a = new A<>().self().self().self(); // OK B b = new…
-2
votes
1 answer

Library to create self querying SNMP Agent in Java

I am trying to create an SNMP Management Agent that will query itself the OID of the Object to be retrieved. It will retrieve the value and store it in an internal database for later retrieval. The system will be coded in Java and deployed in Linux…
Ash
  • 11
  • 1
-2
votes
2 answers

Python 2.7 error with a self-referential variable assignment in a function: local variable referenced before assignment

The following script produces a "local variable 'var' referenced before assignment" error: def func1(): var = var + 1 var = 1 func1() How would you suggest to correct the code? Why does this error occur when the variable is declared in the…
brr
  • 11
  • 1
-3
votes
1 answer

Self-encrypting application to avoid disasembling on non rooted android devices

I'm trying to develop an app with self-encryption for android. The idea is following: app should perform it functions (for example display "Hello world!") but... the app code stored fully (partially) encrypted, i.e. "all what can be encrypted…
Lil Bro
  • 236
  • 1
  • 7
-3
votes
2 answers

what is difference between normal pointer & self referential pointer in c language

What is difference between different pointer allocation? struct node { char *name; struct node *itself; }; My question is - Why it is important to malloc structure pointer variable name ? to point it something, while self_referential did…
rs_prog
  • 11
  • 5
-3
votes
1 answer

c#: Self referencing object conversion

I have a self referencing object, which I need to converted from one to another object which is similar. I'm unable to find suitable method to do the convert with recursion without leading into an infinite loop. Any help would be appreciated.Still…
-3
votes
2 answers

Deobfuscating self-encrypted Javascript - how to check what is being executed

I'm trying to 'disassemble' javascript code that is sending spam to places. It is using eval() to run parts of the code from an obfuscated string. My question is: what can I use to check what commands are actually running through the interpreter?…
Błażej Michalik
  • 4,474
  • 40
  • 55
-5
votes
1 answer

Can a property of a class be the class itself?

Can a class have a property and the class of the property is the class itself? @interface testClass:NSObject @property (nonatomic, strong) testClass *testProperty; @end @implementation testClass @end
Hancock_Xu
  • 63
  • 5
1 2 3
39
40