Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1650 questions
0
votes
1 answer

What are all the possible places a ReferenceError can be thrown?

Given a global variable exists that is defined and a variable notexists, what is an exhaustive list of where ReferenceErrors get thrown and don't get thrown? So far I have yes for: notexists; notexists++; Also curious about special cases where they…
Claudiu
  • 206,738
  • 150
  • 445
  • 651
0
votes
2 answers

How to markup a ladder/draw

I need to markup a ladder for upcoming tournaments, and I can't find any way to mark it up semantically. The only way I've seen so far is to mark it up as a table, and I'd like to avoid that at all costs. Any ideas?
Ryan McCue
  • 1,579
  • 12
  • 21
0
votes
1 answer

jQuery + HTML : Using a or button

Good morning everybody, I'm actually beginning to develop using jQuery and I'd like to do it properly, in a way that's optimized and semantically correct. I wrote a simple example for you to understand where my problem is :
Yonn Trimoreau
  • 514
  • 6
  • 23
0
votes
1 answer

javascript syntax - rosetta code merge sort

On the rosettacode page for merge sort the javaScript example for has the following function: 1 function merge(left,right,arr){ 2 var a=0; 3 while(left.length&&right.length) 4 arr[a++]=right[0]
user1690442
0
votes
1 answer

C Eclipse Semantic Errors?

Can anyone help me get rid of these errors everything is used properly I think.
Mel Moore
  • 79
  • 1
  • 2
  • 9
0
votes
1 answer

Python semantics of returning in a try block

I have the following block in my code: folder = 'validname2' try: if folder == 'validname1': os.chdir('validname1') return functionRelevantToThisFolder() else if folder == 'validname2': …
David
  • 1,715
  • 5
  • 25
  • 40
0
votes
2 answers

Semantically correct HTML

Is the below code semantically correct? I think my biggest confusion is around the need of sections in articles Article: The HTML Element represents a self-contained composition in a document, page, application, or site, which is intended to be…
Anthony
  • 2,062
  • 6
  • 34
  • 60
0
votes
2 answers

Semantic search system in Java

I want to implement a semantic search system in Java. Sesame will be embedded into my system to store and manipulate rdf data directly, and I want to use Tomcat, JSP and Servlet. But I also need to do natural language processing, which I know Python…
ray6080
  • 813
  • 2
  • 8
  • 22
0
votes
1 answer

using sentiwordnet for calculating polarity

Has someone worked with sentiwordnet. I keep getting the error java.lang.ArrayIndexOutOfBoundsException: 2 when the sentiwordnet file is split which I downloaded from this site http://sentiwordnet.isti.cnr.it/ . I suppose I have to format the…
ramya
  • 23
  • 1
  • 6
0
votes
1 answer

Balancing the height of an element in two different containers using CSS

I have a few consecutive section elements each of which contains a heading tag. Would it be possible to force the browser to render those heading tags with exactly the same heights using just the CSS (making the browser use the largest computed…
0
votes
1 answer

Is turning input and label into block level items okey?

I know that you can't (semantically) do something like:

Lorem...

I am working on the comment_form() for WordPress: Label
... I am using Foundation's mixin's…
Ilyes512
  • 2,426
  • 5
  • 20
  • 25
0
votes
4 answers

What does prohibiting value semantics in C++ mean?

I have the following piece of the code: template class derClass : public baseClass, column> { //prohibit value semantics derClass(const derClass&) = delete; derClass& operator= (const derClass&) = delete; …
Roman
  • 97,757
  • 149
  • 317
  • 426
0
votes
1 answer

Semantic Error in basic Tictactoe program in Java

First of all, I hope that I'm allowed to ask for some debugging help here. With that said, I've created this simple little tic tac toe program, and it basically is done, but this semantic error has been killing me. Obviously, I've spent some time…
HelloMyNameIsRay
  • 73
  • 2
  • 3
  • 8
0
votes
1 answer

List as function input, weird syntax

During learning Django framework basics I found the following piece of code. I know how does join() method work but frankly speaking I have no idea what's inside. output = ', '.join([p.question for p in latest_poll_list]) Of course the result is…
Robin92
  • 413
  • 1
  • 6
  • 19
0
votes
1 answer

When will a last-modified date indicate some time in the future?

RFC 2616 Section 14.29 says that if the last modified date is in the future, it should be replaced with the message origination date: An origin server MUST NOT send a Last-Modified date which is later than the server's time of message…
Pacerier
  • 76,400
  • 86
  • 326
  • 602
1 2 3
99
100