Questions tagged [redefine]

101 questions
-1
votes
1 answer

Javascript class method redefine with extend original content

I have a class like: var TTable = function(name){ this.props= function(){ this.properties=new TProperty(); this.properties.Add("wfstart","Workflow start","L",false); this.properties.Add("wfend","Workflow end","L",false); } …
-1
votes
1 answer

How to make PHP permanently running script "forget" everything and perform almost as a restart

I have a PHP script running permanently on a server. I have very limited access to restart it. Is there any way how to reset everything in the script from inside? I do not mean to physically stop and start the script. I'm looking for a way how to…
Láďa
  • 5
  • 4
-1
votes
1 answer

how to redefine a obfucated javascript function

I want to code a script that redefine an existing obfuscated javascript function. This is the function that I copied from my website. userAgentKey: function(e) { return this.options.excludeUserAgent || e.push({ key:…
-1
votes
2 answers

C# redefine a variable in class

I'm sure about problem "types" in C #. Suppose I have a class with the working name "item". This class has a field such as "variable". This field should match those of an element in my program, e.g. Boolean int16, int32, int64, double, uint,…
-1
votes
2 answers

Javascript Undefined variable redefined inside function

could you please help me understand why JS works this way here? var timer = 3; var func = function() { alert(timer); var timer = 5; } func(); It returns me "undefined". If I do var timer = 3; var func = function() { alert(timer); timer =…
Edoardo
  • 15
  • 4
-1
votes
1 answer

I tried to call a function and PHP thinks that I'm trying to redeclare it

I have a function called "logToFile" and I'm trying to call it but PHP is thinking that I'm trying to redeclare it. logToFile: function logToFile($msg) { $filename = "log.txt"; $fd = fopen($filename, "a"); $str = "[" . date("Y/m/d h:i:s", mktime())…
-3
votes
1 answer

Overriding, redeclaring, hiding and redefining of methods in classes, interfaces and classes implementing interfaces

Would it be correct to say that static methods in a class extended with a class, in an interface extended with an interface and in an interface implemented by a class can only be redeclared in the extending/implementing part (hiding the original…
Oyst
  • 1
  • 4
-3
votes
1 answer

(C++) How to redefine "=" operator for object

I have an object of class A. class A[ { int x; string y; float z; .... } Then I have an int, called "integer". How can I redefine the = operator in order to do something like int integer; A obj = integer; in order to obtain something…
Bibby2881
  • 1
  • 1
-3
votes
2 answers

golang compiler is saing that the program is redefineing variables, that haven't been redfeind

The compiler is saying that every variable that has been defined is being defined again 5 lines later and pulling up an error, off course i haven't redefined all my variables 5 lines later, how do i stop this bug? this an example of one of the…
alice w
  • 1
  • 3
-4
votes
1 answer

Redefines clause in cobol

i'm trying to re-define the a variable in Cobol working-storage. Please see if below id possible: Can I re-define a variable with PIC clause 9(2).9(3) to this PIC clause -(2).9(3)
Sunitha S
  • 1
  • 1
  • 3
-4
votes
1 answer

c# 2 events with same name, got chaos at running time, how should i avoid this?

I have a method "Add2List", who creates a ManualResetEvent and stores it in SortedList of a instance, then waits for signaling, then do some work and dispose the event. I have another method "DoSomething", who listens to remote server and then…
1 2 3 4 5 6
7