Hello.
I have a problem with Android Emulator. I have created avd and run it. But when it was started I can't work, because it emulate typing many "=" symbol.
I launch this avd with -debug-all parameter and debuger write "could not handle (sym=61, mod=0, str=EQUAL) >> KEY [0x00d, down]".
OS - Windows Vista. Last version Java platform,...
Statically-typed languages and dynamically-typed languages in principle seem like opposite concepts. However, how can a language like Objective-C for example be both of these things at once? It seems to me that Objective-C is more static than dynamic. Can somebody explain how this is possible?
...
"Introduction"
I'm relatively new to C++. I went through all the basic stuff and managed to build 2-3 simple interpreters for my programming languages.
The first thing that gave and still gives me a headache: Implementing the type system of my language in C++
Think of that: Ruby, Python, PHP and Co. have a lot of built-in types which ...
I am new to Python and prolog. From my understanding, Python is a strongly typed language. Is Prolog a strongly typed language also?
...
Are the implicit type coercions the absoulte evil? Or the history does know a decent implementation of what I've never heard..
Is `weak' typing doomed to be implemented in a way it is done in PHP, Javascript etc.?
...
Please read the full question before posting. It's not that long.
As Jeff Atwood noted, we are typists first, programmers second. Fast typing and editing may not be essential to be a good programmer, but it certainly helps. I noticed that I consciously and subconsciously use various tricks to get my intent across to the computer as fast...
I'm a bit confused:
If I have a base class A, and a class B which extends A, can a variable of the type A hold a value of the type B and vice versa?
If yes, why? Aren't they completely different even if B is derived from A? How about type-safety?
If this is possible, what things do I have to mind when taking use of this? How would ...
After hunting and pecking for about 35 years, I have decided to learn to type. I am learning QWERTY and have learned about 2/3 of the letters so far. While learning, I have noticed how asymmeterical the keyboard is, which really bothers me. (I will probably switch to a symmetrical keyboard eventually, but for now am trying to do everythi...
I'm developing an interpreter and I have some questions to it.
I recently saw a small C interpreter that used a very simple struct like the below for all its objects/values in the language:
struct Object
{
ubyte type;
ubyte value;
};
This struct can hold strings, integers, bools and lists (I think) used in the language the in...
I like the idea of sqlite's manifest typing / type affinity:
http://www.sqlite.org/datatype3.html
Essentially, if I set a column's affinity as 'numeric', it will duck type integers or floats to store them as such, but still allow me to store strings if I want to. Seems to me this is the best 'default' type for a column when i'm not su...
I know that the general tabs vs spaces thing is as old as the hills and mostly comes down to personal preference/sticking to the style of your team, I just wanted to ask a practical question about using spaces in Visual Studio. There are certain things about tabs that bug me and I wouldn't mind changing to spaces while we're a small team...
Does f# is a Nominal typed or a structurally-typed language?
(I know that OCaml is structurally type, though f# doesn't seems to be so).
...
I just spent too long on a bug like the following:
>>> class Odp():
def __init__(self):
self.foo = "bar"
>>> o = Odp()
>>> o.raw_foo = 3 # oops - meant o.foo
I have a class with an attribute. I was trying to set it, and wondering why it had no effect. Then, I went back to the original class definition, and saw that the a...
I have a dynamically typed member id currentEvent in my view controller class. The rationale is that the view controller is used to display data for two model classes that are very similar.
I have a setter:
-(void)setCurrentEvent:(id)e {
[self.currentEvent release];
Class eventClass = [e class];
currentEvent = [[eventClass ...
Programming with GTK+ is annoying and physically painful because of the sheer amount of reaching out for the "_" key. For anyone with actual GTK+ experience, have you found a work around for this?. The platform is linux based.
...
I am in the process of learning Scala and today I felt confident to introduce it to one of our projects.
The application does a lot of JPA / Hibernate stuff and I started implementing one of the Java interfaces in Scala. All went well, until I tried to translate some unittest-code to Scala.
I make a lot of use of Easymock, the code is ...
I come from a statically/strongly typed language background (java), and I recently started to learn python and I think I see the value of dynamic/strongly typed language.
Now I'm wondering whether weak typing can be ever desirable.
Going through stackoverflow, I only found explanations that say it has performance benefits. Since th...
Hello, I know that this isn't exactly a programming question, but it's related to the subject for me. How do you denote different numeral systems in just text? (By text I mean able to type at a proper speed and not copy-pasting it from another program.) For example if i have a number in base 2 how do I type it so others can understand th...
Hi,
I have a website with is made in classic asp. On one page there are 5 textboxes and 5 labels. When users type some value in the textbox then using javascript (added on Onchange event) another asp page is called which done some calculations, fetches some database values based on the value typed and return the result to caller page to...