variable-types Questions

3

Solved

I'm dusting off my Atari ST 520, and am trying to understand some semantic details of the GFA basic. The TYPE(ptr) function is documented this way : Determines the type of the variable at which ...
Guardhouse asked 26/2, 2014 at 10:24

12

Solved

I'm coding a large TypeScript class and I've set noImplicitAny to true. Is there any way to declare multiple variables of the same type on the same line? I'd like to declare x and y as numbers with...
Heliozoan asked 11/12, 2015 at 20:48

6

Solved

Is there some "nice" way to check if a variable passed to a macro is a pointer? e.g. #define IS_PTR(x) something int a; #if IS_PTR(a) printf("a pointer we have\n"); #else printf("not a pointer we ...
Venegas asked 8/10, 2013 at 18:9

4

Solved

Does php 7 support type hinting for class properties? I mean, not just for setters/getters but for the property itself. Something like: class Foo { /** * * @var Bar */ public $bar : Bar; ...
Coarse asked 16/5, 2016 at 13:7

2

Solved

Is there a way to determine if an R variable is a single string? is.character looked promising, but there was one issue: is.character(c("a", "b")) also returned TRUE which is not what I want.
Complement asked 14/7, 2016 at 23:0

6

Solved

How can I check if a var is a string in JavaScript? I've tried this and it doesn't work... var a_string = "Hello, I'm a string."; if (a_string typeof 'string') { // this is a string }
Bradford asked 8/6, 2011 at 23:42

3

So I understand that unsigned variables can only hold positive values and signed variables can hold negative and positive. However, it is unclear to me why would someone use unsigned variable...
Byelaw asked 6/8, 2016 at 19:37

1

Solved

I need to know how to check the variable if its an Array or its an Object var arr = ['foo', 'bar']; var obj = { 0: 'foo', 1: 'bar' } document.write('arr is an: ' + typeof arr + ', obj is ...
It asked 23/2, 2016 at 13:10

1

Solved

I was playing with PROCINFO and its sorted_in index to be able to control the array transversal. Then I wondered what are the contents of PROCINFO, so I decided to go through it and print its valu...
Whitebait asked 22/12, 2015 at 10:47

2

Solved

I have the following block of code: class Student{ int age; //instance variable String name; //instance variable public Student() { this.age = 0; name = "Anonymous"; } public Student(int Age...
Hurling asked 18/5, 2012 at 18:45

5

Solved

I was trying to get my Netbeans to autocomplete with PHP, and I learned that this code is valid in PHP: function blah(Bur $bur) {} A couple of questions: Does this actually impose any limits o...
Villanovan asked 24/12, 2008 at 6:57

32

Solved

In C#, int and Int32 are the same thing, but I've read a number of times that int is preferred over Int32 with no reason given. Is there a reason, and should I care?
Simplism asked 15/9, 2008 at 12:49
1

© 2022 - 2024 — McMap. All rights reserved.