Top "Default-value" questions

A default, in computer science, refers to a setting or value automatically assigned to a software application, computer program or device, outside of user intervention.

Determine if a named parameter was passed

I would like to know if it is possible to determine if a function parameter with a default value was …

python default-value named-parameters
How to define a default value for a custom Django setting

The Django documentation mentions that you can add your own settings to django.conf.settings. So if my project's settings.…

django default-value django-settings
DefaultValue attribute is not working with my Auto Property

I have the following Auto Property [DefaultValue(true)] public bool RetrieveAllInfo { get; set; } when I try to use it inside …

c# properties attributes default-value automatic-properties
Default value for struct parameter

Let's say I have the following struct: struct myStruct { int x; int y; int z; int w; }; I want to …

c++ struct initialization default-value static-initialization
rails override default getter for a relationship (belongs_to)

So I know how to override the default getters for attributes of an ActiveRecord object using def custom_getter return …

ruby-on-rails activerecord associations default-value
How do you use the JSON Schema 'default' attribute in Json.NET?

If I have a JSON Schema that specifies a default value for a property, like { "type" : "object", "properties" : { "foo" : { "type" : "…

json.net default-value jsonschema
PostgreSQL - set a default cell value according to another cell value

If i have a column say column a of any given values, and i want another column column b to …

postgresql database-design triggers default-value postgresql-9.2
Setting the default value of a function input to equal another input in Python

Consider the following function, which does not work in Python, but I will use to explain what I need to …

python function default-value keyword-argument
std::map default value for build-in type

Recently, I was confused by the std::map operator[] function. In the MSDN library, it says: "If the argument key …

c++ default-value stdmap
Sourcesafe command line options

I am having an issue with the Microsoft Visual Sourcesafe command line options that I'm hoping someone has run across …

command-line visual-sourcesafe default-value prompt suppression