Opened 16 years ago
Last modified 16 years ago
#725 closed defect
Fail creating class instances with functions taking just one argument of type NameBlock — at Initial Version
Reported by: | Víctor de Buen Remiro | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | highest | Milestone: | OOP Implementation |
Component: | OOP | Version: | 2.0.1 |
Severity: | blocker | Keywords: | |
Cc: |
Description
When we try to create an instance of a class by means of a function taking just one argument of type NameBlock TOL shows an stupid error and doesn't creates it.
Class ClassA { Text _.name; Real _.length }; ClassA ClassA.New(NameBlock args) { ClassA a = [[ Text _.name = args::name, Real _.length = TextLength(args::name) ]] }; ClassA a = ClassA.New([[Text name="lkshfli", Real k= 1]]);
Note: See
TracTickets for help on using
tickets.