Sure scripts can and usually are dynamic, but you have to get a better grip on
Oz, not only the CP specifics. You just got the loop notation wrong. VoilĂ :

for I in 0..1 do Start.{Label T} \=: I end

In Oz, curly brackets mean procedure/function applications (=calls). This is the
only meaning they have.

Cheers,

Jorge.

Selon Tim Heath <[EMAIL PROTECTED]>:

> I have figured out how to constrain an interval!  Now I want to use a
> loop instead of hardcoding the value to not use in the interval and I am
> having troubles.
>
> If I have:
>
> Between1 = 0
> Between2 = 1
>               Start.{Label T} \=: Between1
>               Start.{Label T} \=: Between2
>
> it works and doesn't use 0 or 1 as a possible start time of the task.
> Writing it this way is not the way I want to do it as it is not dynamic.
>   I try to use a for loop to constrain the start time and it doesn't
> produce the same results:
>
>
> for I in 0..1 do { Start.{Label T} \=: I} end
>
> What is it I don't understand?
>
>
_________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>




_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to