Class creation

Torsten Anders torsten.anders at
Thu Jun 14 20:43:16 CEST 2012

Dear Khadija,

I am not quite sure what you are after. Perhaps you specify in more detail what you actually want to do?

Are you simply looking for a way to have more or less arguments given to the class initialisation method? All method arguments can be optional. If you want a more dynamic reaction to different init method arguments then you can test these arguments in various ways and call other methods or proc accordingly to create and initialise your object.  Further, you can even generate classes dynamically, e.g., a function can return a class, and that way you can further customise your init method on the fly. 

Best wishes,

Dr Torsten Anders
Course Leader, Music Technology
University of Bedfordshire
Park Square, Room A315

On 14 Jun 2012, at 18:49, Khadija EL MAHRSI wrote:

> Hi,
> I was reading the documentation about classes and noticed that there was no possibility to have something similar to multiple constructors. Is this correct? If so, is there a way to create a class which can be initialized in more than one way?
> Thanks.
> _________________________________________________________________________________
> mozart-users mailing list                               mozart-users at

More information about the mozart-users mailing list