var Questions

3

How do I use the SET command in windows for floating point arithmatic. /A stands for arithmetic and %VAR% prints the data of VAR not the name. For example when I do: SET /A VAR="2.5+3.1" ECHO %VA...
Stormy asked 20/9, 2014 at 16:59

6

With Java 10 or +, we can use var keyword for declaration. At initialization, a type is going to be inferred by the compiler. What happens when the class I instantiate and assign to the variable de...
Janeyjangle asked 24/7, 2020 at 12:2

10

I am looking for a way to call a javascript number in the body of an html page. This does not have to be long and extravagant just simply work, I just want something like: <html> <head&gt...
Filament asked 29/11, 2016 at 5:32

10

Solved

I need to know the difference between these three keywords Object , Dynamic and var in C#. I have seen this link but i don't understand in which case i have to use each one. Can you explain for m...
Chromatics asked 12/1, 2014 at 21:12

15

Solved

So, in PHPDoc one can specify @var above the member variable declaration to hint at its type. Then an IDE, for ex. PHPEd, will know what type of object it's working with and will be able to provide...
Albite asked 22/4, 2009 at 18:29

6

Solved

This may be a basic question but I'm having difficulty finding an answer. You want to set var B based on var A would you do var B = if(A == "red"){"hot"}else{"cool"} I don't think this works. ...
Translocation asked 12/8, 2015 at 17:30

15

Solved

According to this article: As you might know, dynamic (as it is now called) is the stand-in type when a static type annotation is not provided. So, what is the difference between dynamic and v...
Isma asked 14/9, 2012 at 0:8

2

Solved

I've installed the version 2018.1 of IntelliJ IDEA (COMMUNITY EDITION), which added support for Java 10. When I tried to use new "var" to type local variable, the IDE highlights it with red colour...
Azpurua asked 10/4, 2018 at 3:50

2

Considering a following example of a generic method without any parameters: private <T> Set<T> create() { return new HashSet<T>(); } According to the docs, the type will be infe...
Aeroplane asked 18/4, 2023 at 9:0

3

Solved

I'm trying to list all buttons name from my form to list with code var v = new List<Form1>() { this }.ForEach(x => { x.GetType().Name.Contains(typeof(Button).Name); }); and always get ...
Merla asked 2/4, 2014 at 14:16

38

Solved

ECMAScript 6 introduced the let statement. I've heard that it's described as a local variable, but I'm still not quite sure how it behaves differently than the var keyword. What are the differences...
Embryectomy asked 17/4, 2009 at 20:9

9

Solved

Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace t...
Laguna asked 1/10, 2014 at 8:48

0

I spend a lot of time writing css for custom WordPress themes in VSCodium. I've created scripts using wp-cli to automate a lot of the process, so I use lots of custom properties/variables, especial...
Detailed asked 29/10, 2022 at 3:20

9

Solved

I've struggled and failed for over ten minutes here and I give in. I need to convert an Int to a Character in Swift and cannot solve it. Question How do you convert (cast) an Int (integer) to a ...
Wrongly asked 14/12, 2015 at 3:42

4

To factorize my code, I want to set a stringKey from an Child class which I'll get in a class func in the parent class: Chair.request(); Table.request(); class Furniture: NSObject { static let ...
Breakwater asked 30/11, 2015 at 10:50

8

I have understood why the output of this code should be 3 3 3. for (var i = 0; i < 3; i++) { setTimeout(() => console.log(i), 1); } I am not able to understand, though, why the out...
Internationalize asked 24/3, 2022 at 6:52

1

Solved

In python, if I am writing a function, is this the best way to type hint a list of strings: def sample_def(var:list[str]):
Jilljillana asked 16/2, 2022 at 20:6

1

Solved

My question is a code style question. So there's obviously not a definitive "right" answer to it. var foo = new Foo<String>(); or Foo<String> foo = new Foo<>(); ...
Hyde asked 3/1, 2022 at 2:12

3

Solved

How does one mark a var in Kotlin volatile? volatile public var tmpEndedAt: Long? = null gives me the error: "unresolved reference: volatile"
Cassy asked 8/6, 2015 at 14:58

27

Solved

What is the scope of variables in javascript? Do they have the same scope inside as opposed to outside a function? Or does it even matter? Also, where are the variables stored if they are defined g...
Magnetics asked 1/2, 2009 at 8:27

1

Solved

Even though I can see that an environment variable was created on windows, process.env always returns undefined. I did set all my variables, and when I check them manually, they all appear in the p...
Leasia asked 23/5, 2021 at 15:48

1

Solved

With Java 11, for this code: String[] arrayString = {"foo", "bar"}; SonarLint say Declare this local variable with "var" instead. So, I have tried: var arrayString = ...
Underact asked 10/5, 2021 at 12:58

1

Suppose I have two time series {x} and {y} and want to examine how the current realization of {y} is dependent on current and past realizations of {x} and past realizations of {y}. For this purpose...
Entrench asked 22/1, 2018 at 17:31

5

Solved

I have an app with both Objective-C and Swift based view controllers. I am programatically opening a Swift based view controller from one of my Objective-C based view controllers. The problem I am ...
Floriculture asked 2/11, 2015 at 13:56

2

Solved

Such as cubejs: <script> var cubejsApi = cubejs( 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE1NTIzOTk5MjcsImV4cCI6MTU1MjQ4NjMyN30.SOO-A6GfGH7ar3EoeBb0cjj10BVxO3ffjvmqQziXIZA', {...
Weismannism asked 11/1, 2021 at 8:15

© 2022 - 2025 — McMap. All rights reserved.