Euphoria Ticket #1013: import keyword

Using the "import" keyword will pull the source from the referenced file into the current scope.

-- mycode.e  
if length(mySeq) then  
  puts(1,"Yes I can!")  
end if  
  
-- main.e  
  
string mySeq = "Can you see me?"  
  
import mycode.e -- pull this code as though it exists right here so it can see mySeq 



Result:

Yes I can! 

Details

Type: Feature Request Severity: Normal Category: Language
Assigned To: ghaberek Status: New Reported Release:
Fixed in SVN #: View VCS: none Milestone: 5.0.0

Search



Quick Links

User menu

Not signed in.

Misc Menu