Questions tagged [strict]

Mode used in languages such as Javascript and Perl to be able to code with a restricted version of those languages.

490 questions
0
votes
2 answers

Using undefined in self-executing anonymous function

I'm trying to implement namespacing using the self-executing anonymous functions in CoffeeScript: How do I declare a namespace in JavaScript? http://enterprisejquery.com/2010/10/how-good-c-habits-can-encourage-bad-javascript-habits-part-1/ I wanted…
Zhao Li
  • 4,936
  • 8
  • 33
  • 51
0
votes
1 answer

stricter XmlSerializer which does not allow unused nodes

I generated C# classes based on XSD using the xsd.exe tool from the SDK. Then I can use that class to [de]serialize objects using XmlSerializer... However the serializer seems to be very forgiving. Is it possible that I can make the serializer throw…
HostMAX
  • 177
  • 1
  • 5
0
votes
1 answer

Can I force IE9 to Internet Explorer 9 standard mode

When i browse one site my IE9 is set in Quirks Mode: I put in my header's site http-equiv="X-UA-Compatible" content="IE=edge,chrome=1 but nothing change. My doctype is "Strict". Help me please :(
0
votes
2 answers

How is JavaScript's strict mode implemented

Update: Perhaps the way the function is called is to blame, so here's to it: 2 JS files  Main.js: self invoking (non-strict) function that adds an event listener for the '(on)load' event. The callback calls a loader function, that parses the…
Elias Van Ootegem
  • 74,482
  • 9
  • 111
  • 149
0
votes
2 answers

Why does strict complain about variables from a required other script?

This is usex.pl: #use strict; require 'x.pl'; print $x; Here is x.pl: #use strict; our $x = 99; 1; It runs fine as shown. If I uncomment the line to use strict in usesx.pl, I get Global symbol "$x" requires explicit package name The use or not…
DarenW
  • 16,549
  • 7
  • 63
  • 102
-1
votes
1 answer

How to get warning for omission of let/var inside object method?

New javascript programmer -- I'd like any advice on how to get warnings when I accidentally forget to include var or let inside an object method. That is, with an object like this let myObject = { someFunction: function (aParameterString) { …
Cerulean
  • 543
  • 2
  • 7
  • 17
-1
votes
2 answers

Javascript loop not executing in strict mode else it works

I have created the code snippet and the buttons should slide up and down by click but that doesn't happen for some reason. Does it look like some subtle syntax error? Please let me know if I need to provide some extra information. Can some one…
-1
votes
2 answers

Use of uninitialized variable warning

I am using GetOptions to get values from perl GetOptions( 'lines=s'=>\$globallines, ); Here, lines is an optional argument. When the user does not enter a value, I am getting a use of uninitialized variable warning where I am using…
emma
  • 93
  • 1
  • 1
  • 10
-1
votes
1 answer

strict mode in chrome console not working

I'm trying to use strict mode in chrome console according to what I read these two method should work but only Method 1 is working. Is in Method 2 I'm doing something wrong or it is not possible to use strict mode like this. Method 1: (function…
Naveen
  • 55
  • 1
  • 11
-1
votes
1 answer

PHP error "Strict Standards: Only variables should be passed by reference"

Receiving this error when using PHP to create an image gallery; "Strict Standards: Only variables should be passed by reference in (filename) on line 5" Does anyone know how to either fix or hide this error? As the actual gallery works fine with the…
Meowls
  • 59
  • 1
  • 5
-1
votes
1 answer

PHP - Is there anyway to set error reporting levels such that single-statement inline clauses are flagged, at least with a warning

I've searched for this but it is a difficult issue to concisely search. I believe in strict language requirements and error/warning reporting. I run PHP with All and Strict error reporting enabled. If a error or warning is generated, I fix the…
SimonT
  • 486
  • 1
  • 4
  • 16
-1
votes
2 answers

Strict standards non static method

I want to fix this error: Strict Standards: Non-static method Gpf_Settings_Regional::getInstance() should not be called statically, assuming $this from incompatible context on line 39 The code producing…
Niel Hrgic
  • 11
  • 1
  • 2
-1
votes
1 answer

PHP Strict Standards: Declaration of uploaded::Download() should be compatible with DownloadClass::Download

I just open this topic because i'm trying to figure this out for days.... Error_log [08-Aug-2013 14:57:37 UTC] PHP Strict Standards: Declaration of uploaded::Download() should be compatible with DownloadClass::Download($link, $FileName, $cookie =…
user758499
  • 21
  • 5
-1
votes
2 answers

Strict standards: Only variables should be passed by reference in get_id.php on line 27

i get the following notice in php : Strict standards: Only variables should be passed by reference in get_id.php on line 27 the code is :
Tejas Rana
  • 49
  • 10
-1
votes
1 answer

Perl Hash of Hashes Storing References To Within - Can't use string ("") as a HASH ref

Alright I have a function which generates a hash tree that dumper prints out to look like this: $VAR1 = { 'shaders' => { 'stock_gui.vert' => '', 'stock_font.vert' => '', 'stock_gui.frag' => '', 'stock_font.frag' => '' }, …
Halsafar
  • 2,540
  • 4
  • 29
  • 52
1 2 3
32
33