Jump to content

Strange problem with application extension file


Recommended Posts

Hi,

I have a set of utility functions in a file called "Utils.opmo". These functions have been tested and have no errors. In order to load these functions at start up, I copied this file to my Extensions folder. When I launch OM, what I notice is that some of the functions in this file are loaded correctly, but some others are not loaded at all (I get error when I call them from the console) even though all are in the same source file. I do not get any error messages at load time.

 

I then included the call "(load "<path>/Utils.opmo"), where <path> is the location of the file, in "Quicklisp Start.lisp". Now, when I start OM, as part of Quicklisp initialisation, my "Utils.opmo" gets loaded correctly.

 

I cannot figure out what the problem could be. Any guesses?

 

Regards,

Rangarajan

Link to comment
Share on other sites

I thought so too, but when I evaluate functions once again via "Evaluate All", they start working. What behaviour is to be expected if by accident I define a function that is part of the system? Will there be an error or warning?

 

Also, they work when I load them from the Quicklisp Start file as mentioned in my previous post. That is strange, right?

 

Regards,

Rangarajan

Link to comment
Share on other sites

No, I did not explicitly give any package specification at the top of the file. But, on checking I find that the functions I defined are in "OPUSMODUS" package as seen from the variable *package*. In that sense, I agree with you that some symbols could shadow built-in functions, but the strange thing is that when I load them explicitly from within Quicklisp Start.opmo, they work fine.

 

I will leave it at that for now, but it needs further investigation.

 

Regards,

Rangarajan

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy