[OpenSCAD] eval( ) ???

jon jon at jonbondy.com
Wed May 13 06:58:41 EDT 2015


Oh, god.  Please do not head towards Visual Basic.

On 5/13/2015 12:56 AM, runsun wrote:
> Indeed. A first class function will work pretty well in cases like I post above.
>
> Just thought of something. Since in openscad, parameters and functions are stored in different places:
> |
>      abc=3;
>      function abc()=...;
> |
>
> Assigning|abc|  to a parameter, if possible, will be confusing:
>
> |
>      x = abc; // function or parameter?
> |
>
> A possible way out of this is like what Visual Basic does:
>
> |
>      x = something; // assign parameter
>      *set*  x = something; // assign object
> |
>
> That is,*set*  for object assignment. In openscad, could be function or module assignment. Not sure how expensive it is though.
> $ 
> <http://forum.openscad.org/mailing_list/MailingListOptions.jtp?forum=1> _Runsun 
> Pan, PhD_
> $ -- *OpenScad_DocTest*: doc and unit test ( Github 
> <https://github.com/runsun/openscad_doctest>, Thingiverse 
> <https://www.thingiverse.com/thing:410831> )
> $ -- *hash parameter model*: here 
> <http://forum.openscad.org/parameterized-models-td8303.html#a8306>, 
> here 
> <http://forum.openscad.org/Can-I-get-some-code-review-up-in-here-tp12341p12355.html>
> $ -- _Linux Mint 17.1 Rebecca x64_ + _OpenSCAD 
> 2015.03.15_/_2015.04.01.nightly_
>
> ------------------------------------------------------------------------
> View this message in context: Re: eval( ) ??? 
> <http://forum.openscad.org/eval-tp12627p12630.html>
> Sent from the OpenSCAD mailing list archive 
> <http://forum.openscad.org/> at Nabble.com.
>
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
>
> No virus found in this message.
> Checked by AVG - www.avg.com <http://www.avg.com>
> Version: 2015.0.5863 / Virus Database: 4342/9758 - Release Date: 05/12/15
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20150513/910d978a/attachment-0002.html>


More information about the Discuss mailing list