Questions tagged [contract]
424 questions
0
votes
2 answers
how to make contract for a non-empty hashtable
Racket has a non-empty-listof contract but no non-empty-hashof contract. Is there a way to build one?

Ben Greenman
- 1,945
- 12
- 22
0
votes
1 answer
Does VisualStudio 2017 already support C++17 code contracts?
does anyone know whether VS2017 already has support for code contracts as seen here C++17 code contracts?
When I try to use them using
explicit IniHandler(std::string fileName) [[expects: fileName != nullptr]]
{
this->fileName = fileName;
}
It…

Thomas Flinkow
- 4,845
- 5
- 29
- 65
0
votes
1 answer
How to find index of item in contract mapping
I have a mapping defined in my ethereum contract as follows
mapping (string => string) client;
I have a function that is trying to add clients to this mapping but before i add i wanna check if item already exists. Is there a way i can get index of…

Asif
- 393
- 9
- 17
0
votes
0 answers
How to fix the error when I compile the solidity?
There is the error log when I install the solidity to compile my ethereum contract:
"CMake" Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in…

Mike
- 419
- 1
- 6
- 16
0
votes
1 answer
How can I make a facade that uses a class that requires several repositories in Laravel?
I have been using Laravel for almost a year now, but I am very new to creating my own packages and using Contracts, Repositories, Facades, etc..., so please bear with me.
I have having issues understanding if I am registering a facade correctly in…

Aaron Adrian
- 521
- 3
- 12
0
votes
0 answers
Define contract to interact with a class (alternative to static interface)
I've seen this asked, but the standard answer is
An interface is a way to define a contract to interact with an object.
This is all and well, but I'm in need of a way for a class to describe itself to allow its creation. Specifically, I have…

Benoit Dufresne
- 318
- 3
- 9
0
votes
1 answer
C# print list issue
I'm doing a WCF service with GUI as client, however I have a problem with printing list of current items added. I have a code to add new entries to the list:
public bool Add_Data(Data sample)
{
container.Add(sample);
…

jeceko
- 11
- 3
0
votes
2 answers
0
votes
1 answer
How to extend a feature's require conditions in Eiffel?
I have a class, which redefines the copy feature from ANY. I would like to add a new require condition, but I get this error:
Assertion in redeclaration uses just 'require' or 'ensure'. invalid precondition feature 'copy'
Code:
copy ( other : like…

Iter Ator
- 8,226
- 20
- 73
- 164
0
votes
1 answer
Uploading file on Step in Bonita
i would like to upload and download a file. I know the FileUploadDownload Example but i required to upload document on step not on instantiation form.how can i achieve that i have made contract on step and assigned it to document variable…

nagi
- 381
- 2
- 8
- 22
0
votes
3 answers
Contract multiple similar attributes in UML
In school we should draw an UML class diagramm for a class we plan to write (we should do the planning).
I now have 10 JLabels, which are attributes to the class Game and each showing a different picture, but all off them serving the same purpose.…

Streusselhirni
- 3
- 2
0
votes
2 answers
Best way to stop contract algorithm?
I am using c++ and want to create a method, that terminates after a given timespan (e.g. 50microseconds) like a contract algorithm.
The method is using loops so my idea was to use the std::chrono::high_resolution_clock::now()
method to measure…

lapayo
- 97
- 1
- 8
0
votes
1 answer
Setting up contracts for Paid App?
I'm trying to setup a contract in iTunes Connect, but all I have is the free contract. I don't have the option to setup a new contract.
Anyone any ideas why ?
Stephen

Stephen
- 4,715
- 8
- 53
- 78
0
votes
1 answer
Why this is false in Groovy `"${'1'}".equals('1')`
Well, actually after checking GString.equals() method implementation it's not a mystery why it works as it works.
public boolean equals(Object that) {
if (that instanceof GString) {
return equals((GString) that);
}
return…

topr
- 4,482
- 3
- 28
- 35
0
votes
1 answer
Can not setup contact iTunes Connect
When I setup information for the contracts in "Agreements, Tax, and Banking" of iTunesConnect, I can not setup the "Contact info". This is because there is no contact showing when selecting the drop-down list as image blow shows. I have even created…

Justanotherpath
- 156
- 1
- 11