Questions tagged [uses]
31 questions
54
votes
7 answers
What is a first-class-citizen function?
What is a first class citizen function?
Does Java supports first class citizen function?
Edit:
As mention on Wikepedia
First class functions are a necessity
for the functional programming style.
Is there any other use of first class functions?

Alpine
- 3,838
- 1
- 25
- 18
6
votes
1 answer
Cleaning uses clauses in Delphi
I've been using cnPack and PascalAnalyzer Lite to clean up the uses clauses in some large projects, and I'm doing it rather conservatively. In particular I'm not removing anything that has an initialization section. PascalAnayser gives hints such…

Alister
- 6,527
- 4
- 46
- 70
6
votes
4 answers
Why should I learn COM?
Lately I'm hearing much about COM at my work. I also learnt that COM is old. COM is deprecated. There is no future for COM. Are these true too?
I want to learn COM because I want to know what is the big fuss about it, but I'm unable to convince…

claws
- 52,236
- 58
- 146
- 195
5
votes
4 answers
Practical use of N-Dimensional Arrays,where (N>3)
I have been programming for the last 8 years and now I was just wondering that if there is any practical use of N-Dimensional array,where N>3.I can only visualize of a data structure that is less than or equal to 3 dimensions.Has any one used more…

Emil
- 13,577
- 18
- 69
- 108
5
votes
1 answer
Homebrew: `brew uses --installed gcc` does not give any result
I would want to get the list of installed packages that depend on gcc (installed with homebrew). When I try:
brew uses --installed gcc
it gives no result. And if I check e.g. r's dependencies with brew deps r, it returns gcc (among others). So I…

Marc
- 1,630
- 1
- 15
- 17
4
votes
1 answer
Adding units to lazarus?
I want to know how to add units to lazarus e.g (crt,sysutils) specifically wingraph.I have scoured the internet but I haven't found anything so can anybody enlighten me?

DanjahSoft Programmer
- 95
- 1
- 11
4
votes
6 answers
Practical application of class destructor
I'm currently trying to learn about classes and constructors/destructors. I understand what the two do, but I'm having a harder time with the destructors because I can't think of a practical application for its use.
Can anyone provide an example…

Painguy
- 565
- 6
- 13
- 25
3
votes
1 answer
How does Aspect Oriented Programming (AOP) influence code quality?
Aspect Oriented Programming (AOP) seems like an interesting concept. At first I was pretty enthusiastic about it, but as I read more and saw the use cases people were describing I grew disappointed.
A lot of sites I saw, plus a presentation from the…

Paul Manta
- 30,618
- 31
- 128
- 208
3
votes
1 answer
Delphi Prompt to Add to Uses
Just upgraded from Delphi XE to Tokyo, and was hoping for some updated IDE features.
One nice to have feature would be automatically providing options to add a unit to the uses clause. For example, if you reference something in code that isn't in a…

sse
- 987
- 1
- 11
- 30
2
votes
1 answer
Is the "Uses" statement in Pascal equivalent to #include in C++ or import in Java
From what I know, in C++ applications, if you include a header file - the contents of the header file are pasted into the code.
On the other hand, in Java - when you import a java library - the parameters are passed to the library in the JVM (I…

W.K.S
- 9,787
- 15
- 75
- 122
2
votes
7 answers
What Can A 'TreeDict' (Or Treemap) Be Used For In Practice?
I'm developing a 'TreeDict' class in Python. This is a basically a dict that allows you to retrieve its key-value pairs in sorted order, just like the Treemap collection class in Java.
I've implemented some functionality based on the way unique…

Seun Osewa
- 4,965
- 3
- 29
- 32
1
vote
0 answers
Is the USES relation between modules transitive?
It sounds trivial, but even my textbook couldn't give a definitive answer to this. Here goes:
IF module A USES module B and module B USES module C, then do we say (formally) that module A USES module C?
In other words, is the USES relation between…

Chris
- 43
- 5
1
vote
3 answers
How to represent a use case contains another on UML?
I'm modeling my web project using UML, I got a case that's neither <> nor <> it's in which a case contains another, How can I represent it?
I have use case called "Project manager" and another called "Tasks manager", as you can…

Nadjib Mami
- 5,736
- 9
- 37
- 49
1
vote
2 answers
Delphi uses clauses containing resource datatypes, like 'RT_RCDATA'
What Delphi uses clauses are needed to access resource datatypes, like 'RT_RCDATA'?

Joseph Poirier
- 386
- 2
- 17
1
vote
1 answer
Delphi - Using TStringList in Class Definition (very new)
I'm doing a simple class definition in Delphi and I wanted to use a TStringList in the class & it's constructor (so everytime you create an object, you pass it a StringList and it does some magic stuff to the StringList data, copying the string…

DoubleE
- 71
- 1
- 10