Check-in [8d21f71ce2]

Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:TIP #508: Added link to the implementation (branch tip-508)
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d21f71ce20d869164b0107435939eec359e3c5b00a8fcaa31797b412fd854fe
User & Date: fbonnet 2018-05-13 22:27:43.160
Context
2018-05-14
22:04
TIP #508: Initial draft complete check-in: ba804fbdae user: fbonnet tags: trunk
2018-05-13
22:27
TIP #508: Added link to the implementation (branch tip-508) check-in: 8d21f71ce2 user: fbonnet tags: trunk
20:31
TIP #425 now final check-in: 093df0a6fb user: jan.nijtmans tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to tip/508.md.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


18
19

20












21
22
23
24
# TIP 508: New subcommand [array default]
	Author:         Frédéric Bonnet <[email protected]>
	State:          Draft
	Type:           Project
	Vote:           
	Created:        13-May-2018
	Post-History:   
	Keywords:       Tcl,array
	Tcl-Version:	8.7
-----

# Abstract

This TIP proposes a new `[array default]` subcommand tha allows default values
for arrays, causing that value to be returned any time an attempt is made to
access an element of the array that isn't present.



# TODO
















# Copyright

This document has been placed in the public domain.













|



>
>
|

>

>
>
>
>
>
>
>
>
>
>
>
>




1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# TIP 508: New subcommand [array default]
	Author:         Frédéric Bonnet <[email protected]>
	State:          Draft
	Type:           Project
	Vote:           
	Created:        13-May-2018
	Post-History:   
	Keywords:       Tcl,array
	Tcl-Version:	8.7
-----

# Abstract

This TIP proposes a new `[array default]` subcommand that allows default values
for arrays, causing that value to be returned any time an attempt is made to
access an element of the array that isn't present.

# Rationale

TODO

# Specification

TODO

	array default get arrayName
	array default set arrayName value
	array default exists arrayName
	array default unset arrayName

# Implementation

The proposed implementation is available on branch
[tip-508](https://core.tcl.tk/tcl/timeline?r=tip-508) in the Tcl Fossil
repository.

# Copyright

This document has been placed in the public domain.