Questions tagged [predefined-variables]

59 questions
9
votes
3 answers

What does perl special variable $-[0] and $+[0] means

I want to know the meaning of perl special variables $-[0] and $+[0] I have googled and found that $- represent number of lines left on the page and $+ represent the last bracket matched by the last search pattern. But my question is what $-[0] and…
AnonGeek
  • 7,408
  • 11
  • 39
  • 55
6
votes
1 answer

What did Perl's $* variable used to do?

I have some code from http://www.hyllander.org/node/23 that uses $* ("dollar asterisk" or "dollar star"), but my version of perl reports: $* is no longer supported at migrate.pl line 284. Do you know what were the side-effects of doing $*=1 Did…
Shalom Craimer
  • 20,659
  • 8
  • 70
  • 106
5
votes
1 answer

evt argument inside a function in javaScript

evt argument inside a function in javaScript Hello stackoverflow community. I need to know how is the evt argument used in these functions. There are some examples in the internet which have the argument evt inside of a function, but I don't see…
5
votes
2 answers

How to change value if table is already drawn

I am using DataTables plugin for jQuery for drawing table on my web app. Everything is working correctly. But one of the option is to press a details button to open an info window which will have additional values. Now that part is working correctly…
user123_456
  • 5,635
  • 26
  • 84
  • 140
4
votes
2 answers

Eclipse IDE predefined variable for current class

I have a logger defined for every Java class: private XLogger logger = XLoggerFactory .getXLogger(AuthenticationFailureHandlerImpl.class.getName()); I want to add this to Eclipse snippets. Is there a pre-defined Eclipse variable such that…
kmansoor
  • 4,265
  • 9
  • 52
  • 95
3
votes
0 answers

How to support PHP predifined functions/variables in a server I wrote myself

I am currently writing my own server in C++ for Posix systems. Before anyone says anything about how I should really use a prebuilt server, please be aware that I do use prebuilt servers for anything business related. This project is entirely a…
William Rosenbloom
  • 2,506
  • 1
  • 14
  • 37
3
votes
1 answer

Predefined 2D array without bounds?

In a class, i want to create an array (predefined because it's in a header class) without specifying any bounds until the class has an object created with it's type. For example: class RandomClass{ public: int myarray[][];//Remember this is a 2D…
killerloader
  • 139
  • 2
  • 10
2
votes
3 answers

PHP Predefined Interfaces & SPL - version check sufficient?

This is perhaps an obvious question, but I want to be sure. I'm trying to work out in which version the "Predefined Interfaces" appeared in PHP. My assumption is 5.0.0, as this is when the SPL interfaces were added according to the…
pospi
  • 3,540
  • 3
  • 27
  • 26
2
votes
2 answers

Predefine field in class using several commands

Let's say I have this class with a constructor that fills the internal list with two entries: class MyClass { IList someList; public MyClass() { someList = new List(); someList.Add(2); …
Kjara
  • 2,504
  • 15
  • 42
2
votes
2 answers

Define data type in OCL

How to define a new data type in OCL? (example - date) OCL already has pre-defined types (Integer, String, Real & Boolean). But how can I define a new data type? Example: I have a class call Person. Person class has following attributes, name :…
2
votes
3 answers

__LP64__ on Windows?

I know Windows uses LLP instead of the LP data model, but is there a predefined variable or something? on OS X/Linux you can use __LP64__.
JT.
  • 281
  • 1
  • 4
  • 5
2
votes
0 answers

changing the behaviour of predefined variables in php

I have made a session management library in PHP that stores session data in databases using functions rather than the trivial $_SESSION['key'] = value. To store the data, the user would use storeData($key, $value) function To retrieve the data, the…
Rash
  • 7,677
  • 1
  • 53
  • 74
1
vote
2 answers

I thought one did not have to pre-define arrays in PHP

So, I created an array, by manually adding each entry: $Sections[] = "A.1.4.1";//900 0 900 0 900 900 888 800 800 913 900 900 900 $Sections[] = "A.1.4.2.1";// 1000 1000 1000 1000 1000 1000 1000 1000 1000 1000 994 976 954 900 846 779 516 430 344 328…
Joshua
  • 4,270
  • 10
  • 42
  • 62
1
vote
1 answer

How to define variables in a callback without parameters

In Puppeteer's evaluate function, I can access variables that seem to be predefined, but only in the scope of the function: // Excerpt page.evaluate(() => { alert("Hello world!!"); }); There aren't any parameters that get passed into the function…
code
  • 5,690
  • 4
  • 17
  • 39
1
vote
1 answer

Why type-casting don't properly work with $. in Ruby?

I have a Ruby code as shown below, Try it online! loop{p$.+=1r} and another one, in which I just divide the 1r by 2 as shown below, Try it online! loop{p$.+=1r/2} As far as I can guess, the type-casting isn't working properly with $.. In the first…
vrintle
  • 5,501
  • 2
  • 16
  • 46
1
2 3 4