Oberon Community Platform Forum
December 07, 2019, 08:06:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Renaming imported module  (Read 3595 times)
darek
Jr. Member
**
Posts: 59


« on: May 14, 2008, 09:42:36 AM »

Hi all,
 according to the Aos syntax, this should work
 
 MODULE test_import;
    IMPORT AosOut := Out;
   
   
   PROCEDURE Run*;
        BEGIN
             Out.String("test out"); Out.Ln;
   END Run;
   
END test_import.

System.Free  test_import ~
 test_import.Run;

but instead, I got :

   compiling test_import not done
   pos  102  err  0     undeclared identifier
   pos  126  err  0     undeclared identifier


Is this a bug ?

Regards,
  Darek
« Last Edit: May 14, 2008, 09:55:49 AM by darek » Logged
negelef
Administrator
Jr. Member
*****
Posts: 55


« Reply #1 on: May 14, 2008, 09:45:07 AM »

Do it the other way round:

Code:
IMPORT Out := AosOut;
Logged
darek
Jr. Member
**
Posts: 59


« Reply #2 on: May 14, 2008, 12:05:37 PM »

 Grin  Grin  Grin

Direction of an assigment  Roll Eyes

Thanks,
  Darek
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!