Renaming of procedures in a generic instantiation1240 (9/26/2010 12:43:17 AM) comp.lang.ada I'm confused about an aspect of renaming. It boils out to this little example: with Ada.Containers.Ordered_Sets; package Foo is type Queue is private; procedure Add(Q : in out Queue; Item : in Integer);... Gene
JOGL preload8168 (8/4/2010 4:01:58 PM) comp.lang.java.programmer We have a medium-sized (abuot 40,000 SLOC) Swing Desktop+JOGL app.
The JOGL part of the system draws on a GLCanvas that's on an initially
hidden tab control. The normal pattern of use is to work in the Swing... Gene
New sculpture of Ada Byron Lovelace152 (5/13/2009 12:47:42 AM) comp.lang.ada Hope the members of the Ada community enjoy some images of a new sculpture of Ada Lovelace. See http://picasaweb.google.com/gene.ressler/AdaByronLadyLovelace# The image was constructed from all the well-known... Gene
Continuation Passing Style in Ada035 (5/8/2009 3:36:20 AM) comp.lang.ada As a recreation, I've been coding, in different languages, a little program that prints all possible ways to parenthesize a given arithmetic expression. A way to avoid storing all the possiblities is to use con... Gene
Martians' Revenge?143 (7/11/2008 2:17:33 AM) comp.lang.ada If there is an advanced civilization somewhere on Mars, we have sent them a poor message about our collective technological judgement. It turns out all the flight pack software on Phoenix is in C. http://news... Gene
Out parameters and unconstrained variant types421 (6/27/2008 12:22:29 AM) comp.lang.ada Hello friends, I would like to do something like: type Conditional_Result (Exists : Boolean := False) is record case Exists is when True => Value : Natural; when False => null; end record; ... Gene
Equalp on cycles639 (4/9/2008 2:19:33 AM) comp.lang.lisp When I try to use structs with cycles as keys in hash tables with :test #'equalp , clisp dies a horrible death. I can't find a mention of this topic in the HS. Cycles ought to be manageable by equalp. Any in... Gene
Compilation without implementation source567 (1/27/2008 3:34:48 AM) comp.lang.ada For an educational exercise using GNAT and gnatmake, I need to hide implementations of some modules from students in the simplest possible way. Is there a way to give them .ali, .ads, and .o files while withho... Gene
Access idiom1329 (1/20/2008 7:57:09 PM) comp.lang.ada First, thanks for past help from this group. I'm at an impasse developing a graph data structure. There are many node types derived from a "most general" one. Most of the node types contain fields that are c... Gene
Casting pointers to varargs functions629 (11/3/2007 2:23:37 AM) comp.lang.c Hello all. Is the initializing assignment below ANSI standard- conforming? Is there a way to have the prefix parameters to ... type checked in such an assignment? E.g. in this case int x in the typedef matche... Gene
Toughest Probability Question4149 (12/12/2011 11:57:56 AM) comp.lang.c Toughest Probability Question (Source : http://hardest-puzzle.blogspot.com/2011/12/toughest-probability-question.html ) How many people must be gathered together in a room, before you can be certain that there... bisht88.divya(73)
Function pointer vs conditional branch3743 (1/4/2012 10:20:18 PM) comp.lang.c Hello As a general rule-of-thumb: Are function pointers more efficient than if statements, if the same path will be taken throughout the course of the program? E.g. If I was going to repeatedly render an im... edward.p.rutherford79(45)
The container abstraction and parallel programming4132 (1/6/2012 11:02:07 PM) comp.lang.c Today, more than 10 years tafter Intel introduced the first SIMD instructions it is still not possible to use those instructions to do SIMD programming when you use C and two mainstream compilers like gcc or ... jacob31(874)
Getting started with Java on a Mac3336 (1/13/2012 2:41:16 PM) comp.lang.java.programmer I've been looking for a programming language to help me write tools to do stuff. For example generate 2-D plots from CSV or text files. C++ can do that (and more) but there's a lot more overhead and mainten... wayned(48)
variable length permutation code543 (1/28/2012 9:03:02 PM) comp.lang.c I have code that will take a string and generate the permutations of the string. i.e. the string is abc: abc acb bac bca cab cba What I would like is to modify it so it can produce: a b c ab ac ba bc ca cb a... rhyes80(3)
Recommendation for a text4339 (3/5/2012 1:21:23 PM) comp.lang.c Greetings, I teach math and computer science (though mostly math) at a small liberal a= rts college. Because of our smallness we don't have a huge course offering.= To compensate, we have a grab-bag "special ... jcoleman(52)
What is the right way to do this simple thing4126 (3/10/2012 7:26:15 PM) comp.lang.c Suppose that I have some data that is pointer free. It isn't necessarily serialized in some format such as JSON but I would like to be able to copy it from one from one machine to another compatible machine a... cri(1432)
avoid newline scanf623 (3/24/2012 3:54:49 AM) comp.lang.c Hi, I'm trying to use scanf like this: scanf("%d%c%d", &a, &op, &b); if (op=='+') c=a+b; printf("=%d",c); My input is 2+2, and it prints "=4". Its fine. The problem is that I dont want a newline after scanf... sorrizo_16(2)
Determine if two integers have different sign348 (4/30/2012 7:11:15 AM) comp.lang.c I use the following condition, to determine, if a and b have different signs: (a>0&&b0) Cases were a=0 or b=0 hold are handled separate. When twos complement integers are used, something like (a^b)0&&b0)... thomas.mertes(593)
Crossword project746 (11/22/2012 6:01:54 PM) comp.lang.c This is my latest hobby project. A program to enable people to design crosswords.
You can see it at
http://www.malcolmmclean.site11.com/www/Crosswords/crosswords.html
It's written in C, under the Windows... malcolm.mclean5(750)