Questions tagged [reserved]

Denotes a resource that is usable only in a pre-determined way. This can reference memory, key words or hardware.

Denotes a resource that is usable only in a pre-determined way. This can reference memory, key words or hardware.

94 questions
96
votes
2 answers

Can a declaration affect the std namespace?

#include #include /* Intentionally incorrect abs() which seems to override std::abs() */ int abs(int a) { return a > 0? -a : a; } int main() { int a = abs(-5); int b = std::abs(-5); std::cout<< a << std::endl <<…
Peter
  • 743
  • 5
  • 6
27
votes
5 answers

How to check if a string is a valid python identifier? including keyword check?

Does anyone know if there is any builtin python method that will check if something is a valid python variable name, INCLUDING a check against reserved keywords? (so, ie, something like 'in' or 'for' would fail...) Failing that, does anyone know of…
Paul Molodowitch
  • 1,366
  • 3
  • 12
  • 29
16
votes
2 answers

Using reserved word field name in DocumentDB

I inherited a database loaded into DocumentDB, where field name happens to be "Value". Example of my structure is: { ... "Alternates": [ "Type": "ID", "Value" : "NOCALL" ] } when I query (using documentDB's SQL), trying to get…
Alex Vilner
  • 161
  • 1
  • 3
15
votes
1 answer

Reserved Keywords -- Hidden? JNLP

I was browsing through some details when a thread caught my eye. https://forums.oracle.com/forums/thread.jspa?messageID=9886607 As you can see; &TOKEN=something in JNLP href is considered a special keyword and &token works. I am not really sure if…
vpram86
  • 5,860
  • 4
  • 28
  • 40
14
votes
2 answers

How to check which instance is reserved in AWS?

We have 2 reserved c3.xlarge instance in our project but have total 3 launched c3.xlarge instance. How to check which 2 instances are reserved out of 3. I checked details of all 3 instances, but nothing is mentioned.
Ashish Karpe
  • 5,087
  • 7
  • 41
  • 66
14
votes
3 answers

escape curly braces in unix shell script

I have a string: {2013/05/01},{2013/05/02},{2013/05/03} I want to append a { at the beginning and a } at the end. The output should be: {{2013/05/01},{2013/05/02},{2013/05/03}} However, in my shell script when I concatenate the curly braces to the…
axm2064
  • 149
  • 1
  • 1
  • 7
13
votes
6 answers

Can I use PHP reserved names for my functions and classes?

I'd like to create a function called "new" and a class called "case". Can I do that in PHP?
Ciprian Mocanu
  • 2,166
  • 3
  • 25
  • 44
9
votes
3 answers

How do I use a C# reserved keyword as a property name without the @ prefix?

I need to design a class where one property name has to be return, but when I create a property name like return then I get an error. After some research I found out that one can use a reserved keyword as a property or variable name by adding a @…
Thomas
  • 33,544
  • 126
  • 357
  • 626
8
votes
1 answer

javaScript reserved keywords

I am wondering how JavaScript's reserved keywords / functions are managed. Example: According to: http://www.quackit.com/javascript/javascript_reserved_words.cfm delete is a reserved keyword by JavaScript. Then consider the following snippet for…
Willem
  • 723
  • 2
  • 9
  • 27
8
votes
2 answers

What are the official XML reserved characters?

In this page, Microsoft says that XML reserved characters (and their entity) are the following ones: > > < < & & % % But in this other page, I found that also ' is a reserved character (and its entity is '). Can…
Vito Gentile
  • 13,336
  • 9
  • 61
  • 96
5
votes
1 answer

Is move a keyword in c++?

I'm writing a program and have a function named "move". But it's highlighted in my codeblocks? Is move a reserved word in c++? If so, what does it do? I have it as void move( double t, double u)
Alex
  • 119
  • 3
  • 9
4
votes
1 answer

How is this Java project using the language reserved words as identifiers?

I have de-compiled a Java project using JD-GUI, and was surprised when I saw that all identifiers are using Java reserved keywords such as int do throw extends etc.. Here is a snippet of the project: public class try extends Thread { private int…
Soufiane Touil
  • 803
  • 2
  • 8
  • 17
4
votes
1 answer

Print all Lua reserved keywords

With this code: for n in pairs(_G) do print(n) end I print the names of all global variables defined in the current environment. Is there any way to print all Lua keywords…
user5273262
4
votes
2 answers

SQLite non-exclusive RESERVED lock?

I've been looking into improving SQLite performance for my site, especially with regard to transactions. In essence what I'm looking for is a way to defer database writes in a process so that they can all be done at once. However, while I'm…
Kyle Cronin
  • 77,653
  • 43
  • 148
  • 164
3
votes
1 answer

How to create a single node AKS cluster using a 1-year reserved instance?

As the title says, I can't figure out how you're supposed to do this. The pricing calculator allows for it, so I'm assuming it's possible. I've tried: 1) Creating a new cluster 2) Creating a vm and adding it to an existing cluster, then deleting…
Teslavolt
  • 113
  • 5
1
2 3 4 5 6 7