Skupiny Google už nepodporujú nové príspevky ani odbery Usenet. Historický obsah zostáva viditeľný.

[S03] Range Semantics

6 zobrazení
Preskočiť na prvú neprečítanú správu

Jonathan Lang

neprečítané,
6. 4. 2007, 1:17:546. 4. 2007
komu: p6l
Inspired by the new array indexing syntax from S09.

Modify S03 (under "Range Semantics") so that if a Range is operating
in a bounded space, a 'whatever' star as the starting or ending point
maps to the lower or upper bound:

my enum Months «:Jan(1) Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec»
Mar..* # same as Mar..Dec
*..Mar # same as Jan..Mar

This makes Ranges in an array index a natural outgrowth of the
standard Range semantics, rather than being an exceptional case.

--
Jonathan "Dataweaver" Lang

0 nových správ