Chris Rathman wrote:
Not one of my mine - just used the one the comes with Mozart. Ok, so I
take your suggestion and try:
declare
[Time] = {Module.link ["time.ozf"]}
And that works.
Hi Chris,
I'm surprised that now it works, because the error message that you
published before was saying that 'system' was not a valid field in the
module Time, and that you should call one in the set {alarm, delay,
repeat, time}. Here is the error message
%** illegal feature selection on record
%**
%** Feature found: system
%** Expected one of: {alarm, delay, repeat, time}
%** in file "c:/alice/sicp01-emacs.oz", line 506, column 32
Then, if you do
{Browse {Time.time}}
you will see, according to the documentation: the number of seconds
elapsed since January, 1st of the current year.
You may also be interested in {OS.time}, which returns the time since
00:00:00 GMT, Jan. 1, 1970 in seconds
cheers
Boriss
Thanks,
Chris Rathman
Raphael Collet wrote:
Chris Rathman wrote:
I can create and run the following code in a compiled file that
defines a function if I do an "import Time" operation. However, I'm
left wondering how to get the function to compile from the
interactive environment within emacs:
Is Time the corresponding module in Mozart, or is it your own module?
You can always import explicitly modules with the Module module:
%% in a functor
import Time at "blah.ozf"
%% in the OPI
declare
[Time] = {Module.link ["blah.ozf"]}
See the documentation of Module.
Cheers,
raph
_________________________________________________________________________________
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
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users