Project

General

Profile

Actions

Bug #7628

closed

Methods 'dist' and 'range' are not supported in data sections

Added by Andrei Tatarnikov about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
10/25/2016
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
2.4.0

Description

Subject. The code below gives error: (MTRubyError) Method 'range' is not available in data sections.

data {
  int32_dist = dist(range(:value => 0,                      :bias => 25),
                    range(:value => 1..2,                   :bias => 25),
                    range(:value => 0xffffFFFE..0xffffFFFF, :bias => 50))
  word int32_dist.next_value,
       int32_dist.next_value,
       int32_dist.next_value
}

It must be supported.

Actions #1

Updated by Andrei Tatarnikov about 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Fixed: r7266.
Example and unit test: r7267.

Actions #2

Updated by Andrei Tatarnikov about 8 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 2.4.0
Actions

Also available in: Atom PDF