assign() has been deprecated, correct?
I have just noticed that the following MCAD files have assign in them.
fonts.scad: for(i=[0:resolution-1])
assign(dx=widthcos(360i/resolution),dy=widthsin(360i/resolution))
involute_gears.scad: assign (
involute_gears.scad: assign (
involute_gears.scad: assign (
involute_gears.scad: assign (
polyholes.scad: assign(d = i + 0.5)
screw.scad: assign (z = i*offset){
Jerry
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson
On Tue, Oct 27, 2015 at 07:01:27PM -0700, Jerry Davis wrote:
assign() has been deprecated, correct?
I have just noticed that the following MCAD files have assign in them.
fonts.scad: for(i=[0:resolution-1])
assign(dx=widthcos(360i/resolution),dy=widthsin(360i/resolution))
involute_gears.scad: assign (
involute_gears.scad: assign (
involute_gears.scad: assign (
involute_gears.scad: assign (
polyholes.scad: assign(d = i + 0.5)
screw.scad: assign (z = i*offset){
Yeah they're in need of cleanup in that aspect and in others as well. Work's
ongoing in the dev branch.
--
Kind regards,
Loong Jin
great. I am not privy to when the assign() statement will no longer be in a
future release.
I have found something in Thingiverse that I like. And it has assigns in
there. Is there a recommended method to get rid of the assign's?
(Just leave off the assign? like: assign(x=3) ==> x == 3? or what?
Jerry
--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer
The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".- Isaac. Asimov
I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous
If writing good code requires very little comments, then writing really
excellent code requires no comments at all!- Ken Thompson
On Tue, Oct 27, 2015 at 9:50 PM, Chow Loong Jin hyperair@debian.org wrote:
On Tue, Oct 27, 2015 at 07:01:27PM -0700, Jerry Davis wrote:
assign() has been deprecated, correct?
I have just noticed that the following MCAD files have assign in them.
fonts.scad: for(i=[0:resolution-1])
assign(dx=widthcos(360i/resolution),dy=widthsin(360i/resolution))
involute_gears.scad: assign (
involute_gears.scad: assign (
involute_gears.scad: assign (
involute_gears.scad: assign (
polyholes.scad: assign(d = i + 0.5)
screw.scad: assign (z = i*offset){
Yeah they're in need of cleanup in that aspect and in others as well.
Work's
ongoing in the dev branch.
--
Kind regards,
Loong Jin
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On Wed, Oct 28, 2015 at 06:55:43AM -0700, Jerry Davis wrote:
great. I am not privy to when the assign() statement will no longer be in a
future release.
I have found something in Thingiverse that I like. And it has assigns in
there. Is there a recommended method to get rid of the assign's?
(Just leave off the assign? like: assign(x=3) ==> x == 3? or what?
This:
blah () {
assign (x = 3) {
something ();
}
}
becomes
blah () {
x = 3;
something ();
}
--
Kind regards,
Loong Jin