I think that i'll use array instead of list. But I wanna use Lists to
emphasize the functional paradigm of oz...

On Tue, Jun 9, 2009 at 9:07 AM, Andryw Marques <[email protected]> wrote:

> Thank's, I saw my error...
>
> Another question:
> Can I set a element of a list:
>
> example:
>
> List = [2 3 4]
> List.1 = 10
>
> How can I set the element "2" to "10"?
>
>
> On Tue, Jun 9, 2009 at 7:00 AM, <[email protected]> wrote:
>
>> Send mozart-users mailing list submissions to
>>        [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>        http://lists.gforge.info.ucl.ac.be/mailman/listinfo/mozart-users
>> or, via email, send a message with subject or body 'help' to
>>        [email protected]
>>
>> You can reach the person managing the list at
>>        [email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of mozart-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re: Export classes in functor (Andryw Marques)
>>   2. Export classes in functor (Andryw Marques)
>>   3. Re: Export classes in functor (Wolfgang Meyer)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 8 Jun 2009 14:47:56 -0300
>> From: Andryw Marques <[email protected]>
>> Subject: Re: Export classes in functor
>> To: [email protected]
>> Message-ID:
>>        <[email protected]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> On Mon, Jun 8, 2009 at 2:42 PM, Andryw Marques <[email protected]>
>> wrote:
>>
>> > Hello, I'm new in oz/mozart, and I have a doubt.
>> > Can classes be export in a functor?
>> >
>> > 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
>> >
>>
>>
>>
>> --
>> Andryw Marques Ramos,
>>
>>
>> Graduando no Curso de Ciência da Computação
>> Membro do Projeto Smart Analysis
>> Universidade Federal de Campina Grande
>> Brasil
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/20090608/abccdb60/attachment-0001.html
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Mon, 8 Jun 2009 14:42:52 -0300
>> From: Andryw Marques <[email protected]>
>> Subject: Export classes in functor
>> To: [email protected]
>> Message-ID:
>>        <[email protected]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hello, I'm new in oz/mozart, and I have a doubt.
>> Can classes be export in a functor?
>>
>> 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
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> http://lists.gforge.info.ucl.ac.be/pipermail/mozart-users/attachments/20090608/33202d91/attachment-0001.html
>>
>> ------------------------------
>>
>> Message: 3
>> Date: Mon, 08 Jun 2009 22:12:49 +0200
>> From: "Wolfgang Meyer" <[email protected]>
>> Subject: Re: Export classes in functor
>> To: Mozart users <[email protected]>
>> Message-ID: <[email protected]>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> 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://lists.gforge.info.ucl.ac.be/mailman/listinfo/mozart-users
>>
>> End of mozart-users Digest, Vol 32, Issue 11
>> ********************************************
>>
>
>
>
> --
> Andryw Marques Ramos,
>
>
> Graduando no Curso de Ciência da Computação
> Membro do Projeto Smart Analysis
> Universidade Federal de Campina Grande
> Brasil
>



-- 
Andryw Marques Ramos,


Graduando no Curso de Ciência da Computação
Membro do Projeto Smart Analysis
Universidade Federal de Campina Grande
Brasil
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to