Dear Andryw,

> Hello, I'm new in oz/mozart, and I have a doubt.
> Can classes be export in a functor?


Yes, classes are just normal values and can be exported exactly like you did in 
the example.

Can you show us the error message?

Cheers,
  Wolfgang


P.S. Attribute identifiers are usually atoms, i.e. they start with a lower case 
letter. But this is not the cause of the error. (If you use a attribute 
identifier starting with a upper case character, Oz will internally use a 
unique name, which could be useful for some advanced programming techniques...)



> Example:
> 
> functor
> 
> export
>    Mine
> 
> define
> 
>    class Mine
> 
>       attr Type
> 
>       meth init(NewType)
>            Type := NewType
>       end
> 
>      %[...]
> 
>    end
> end
> 
> I made a file .oz calling (import) this functor, and the compiler show
> errors about the export class.
> 
> Thank U
> 
> 
> -- 
> Andryw Marques Ramos,
> 
> 
> Graduando no Curso de Ciência da Computação
> Membro do Projeto Smart Analysis
> Universidade Federal de Campina Grande
> Brasil

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to