Lasso Soft Inc. > Home

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.

Lasso 9 Issues



Ticket #7566: Can traits provide oncreate signatures for types?

Reported by:
Ke Carlton
Date:
23 Aug, 2013
Priority:
minor
Component:
Lasso 9
Version:
9.2
Keywords:
Platform:
It would be really great if traits could provide oncreate signatures for types. I think I may have raised this before — but no harm doing so again:

define trait_example => trait {
require id
provide oncreate(p::integer) => { .id = #p}
}

define example_obj => type {
data public id = 0
trait {
import trait_example
}
}

example_obj(1)

Currently there's no way to propagate oncreate methods — this would be one approach that wouldn't break anything and would be a very useful addition.

Ke

ps. It would also be nice to be able to redefine traits — this has been an issue since day one.
Please log in to your LassoSoft account to comment

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft