Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - how to define a newstruct inside a Singular library
Author Message
  Post subject:  Re: how to define a newstruct inside a Singular library  Reply with quote
Quote:
Quote:
how to define a newstruct inside a Singular library?[...]
hannes wrote:
[...]
If you want to have it automatically available after loading
the library, define it in mod_init() which will automatically after loading.
[...]


thanks, that was it!
Post Posted: Thu Jun 12, 2014 3:28 pm
  Post subject:  Re: how to define a newstruct inside a Singular library  Reply with quote
Like any other (non-)proc object: define it INSIDE a procedure.
If you want to have it automatically available after loading
the library, define it in mod_init which will automatically after loading.
See for example
https://github.com/Singular/Sources/blo ... visors.lib
Post Posted: Wed Jun 11, 2014 6:49 pm
  Post subject:  how to define a newstruct inside a Singular library  Reply with quote
Hello,


when defining anything else than a proc inside a '.lib' file,
the user gets an error:
Quote:
cannot assign character 'n' in line ... to any group.


Question: how to define a newstruct used by a Singular library?
Post Posted: Fri Apr 11, 2014 12:22 pm


It is currently Fri May 13, 2022 11:02 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group