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 - Pointers
Author Message
  Post subject:  Re: Pointers  Reply with quote
Hello,

It seems that Singular provides an experimental reference type.
( Manual/latest/sing_250.htm#SEC290 )
What are the potential issues?
Is it still experimental?


As soon as it gets stable, there will be hopefullly no excuse any more for
monsters like 'normalizationPrimes(..)' (900 lines of code)
or for dublicate code.


Jakob
Post Posted: Mon Apr 22, 2013 2:35 pm
  Post subject:  Re: Pointers  Reply with quote
You may try a new, experimental feature (3-1-1-3 and later):
prepend the type of the parameter by "alias" and the variable will be passed by reference (currently read-only: we still have to discussed about that).
Example:
proc (alias int i)
{
.....
}
Post Posted: Sat Jul 31, 2010 3:20 pm
  Post subject:  Pointers  Reply with quote
Is it possible to pass values by reference or pointers in Singular?
Post Posted: Thu Jul 22, 2010 9:14 pm


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