Opened 4 years ago

#47 new enhancement

Span only supports integral types

Reported by: jonathan Owned by: jonathan
Priority: major Component: Olivine
Version: Keywords:
Cc:

Description

The span operator (x .. y) only supports integers, and hard-coded ones at that. Enforcing hard-coded literals might make sense but restricting this to integrals is very limiting particularly if you want to choose a random floating-point value between two bounds for, say, a random audio pitch when playing a sound effect.

Expected: 0.8 .. 1.2

Change History (0)

Note: See TracTickets for help on using tickets.