RhinoTrac
LassoSoft Ticket Tracking System
NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.
Ticket #7581: trait requirements empty in interpreted mode
- Reported by:
- Eric Knibbe
- Date:
- 05 Sep, 2013
- Priority:
- minor
- Component:
- Lasso 9
- Version:
- 9.2
- Keywords:
- Platform:
For the code below:
define trait_first_last => trait {
import trait_frontEnded // requires "first", provides "front"
import trait_backEnded // requires "last", provides "back"
require get
require size
provide first() => .get(1)
provide last() => .get(.size)
}
stdoutnl('requires: '+::trait_first_last->gettype->trait->requires)
//stdoutnl('provides: '+::trait_first_last->gettype->trait->provides)
In compiled mode with `LASSO9_NO_INTERPRETER=1`, it returns:
`requires: staticarray(trait_first_last->get(), trait_first_last->size())`
In interpreted mode, it returns:
`requires: staticarray()`
This may be related to #7563.
Please log in to your LassoSoft account to comment
Comments
`::any->gettype->requires`
fix segfault when calling ->requires, refs #7581
fix trait->requires output when not using interpreter, refs #7581
fix #7581: populate trait requirements in interpreted mode