Questions tagged [hidden-variables]

11 questions
9
votes
2 answers

Parameters hide instance variables in Objective-C

Is there a way to give a parameter to a method the same name as an instance variable in Objective-C without hiding that variable? For instance, - (void)doSomething:(id)object { self.object = object; } The code above gives the warning "local…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
2
votes
0 answers

hidden variable not emitting value attribute on Empty value

I have below line in my aspx page - now when I run this aspx page, it does not emit the "value" attribute as empty. below is snipet from page source of rendered aspx page -…
CHash11
  • 746
  • 4
  • 14
  • 31
2
votes
1 answer

ios __weak and __autoreleasing

I got some questions after reading the answer to this thread Handling Pointer-to-Pointer Ownership Issues in ARC; For demo 1, when a reference to a 'strong' attributed variable is passed, a hidden(__autoreleasing) variable is implicitly created and…
Dirk Zhou
  • 51
  • 3
1
vote
7 answers

PHP: Using hidden GET variable as login?

I'm looking at doing a very basic authentication script as follows:
Dave Salomon
  • 3,287
  • 1
  • 17
  • 29
1
vote
4 answers

Passing Hidden Variables in Vb.net

I want to pass a few variables to another page. Currently I'm using response.redirect and passing the variables in the url. I'm not really interested in using Session Variables. Is there a way to pass hidden variables in .NET to a completely…
Eric
  • 7,930
  • 17
  • 96
  • 128
1
vote
2 answers

Temporarily replace global const inside function

Is there a way in Javascript to temporarily replace a variable defined in an outer scope, but only keep that value during the inner scope, as there is in other languages like C++? For example: const debug = require('debug')('mymodule'); function…
Malvineous
  • 25,144
  • 16
  • 116
  • 151
0
votes
0 answers

How to send a value as hidden variable in api call of headers along with token to aviod XSS , Domain or email spoofing using angular 13?

const request= req.clone({ headers: req.headers .set('Content-type', 'application/json') .set('Access-Control-Allow-Origin', '*') .set('Access-Control-Allow-Headers', 'Content-Type') .set('Access-Control-Allow-Methods',…
sai
  • 11
  • 2
0
votes
1 answer

Test Driven Development with hidden variables and methods in C

Is there a proper way to to TDD (test driven development) against private variables and functions efficiently? I am testing a new circular buffer module. The buffer parameters are held in a struct. These struct members should be private since the…
jaypee
  • 75
  • 1
  • 5
0
votes
2 answers

Assigning hidden variable in a function within a function

I have javascript code similar to the following, however when I try to use 'myVar' within foo(), its value is undefined. I've also tried passing the variable into bar() and assigning it directly, but will not pass by reference. function foo() { …
-1
votes
3 answers

DCG: hidden argument across all Rules?

.in DCG is there a way to have hidden argument i.e. argument is passed in the top rule , but I dont mention it in the rest of the rules , but i still have access to it. S(Ctx,A,B) --> ... R1(A) --> .... R2(A) --> ..R5(A), { write(Ctx) } R3(A)…
sten
  • 7,028
  • 9
  • 41
  • 63