Project

General

Profile

Bug #7628

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

Added by Andrei Tatarnikov about 3 years ago. Updated about 3 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.

History

#1

Updated by Andrei Tatarnikov about 3 years ago

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

Fixed: r7266.
Example and unit test: r7267.

#2

Updated by Andrei Tatarnikov about 3 years ago

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

Also available in: Atom PDF