dmg@ssc-vax.UUCP (David Geary) (02/05/88)
I just go a new Sun 3/60 at work ;-), and at the moment, I'm playing around with SunView. I was previously programming application enhancements on an obscure CAD station that had absolutely ZIP when it comes to nice environments such as SunView. What a difference!! Anyway, I'm really impressed with the way you create "objects" in SunView. If I want a panel in a window, I can: panel = window_create(frame, PANEL, 0); and I get a panel with a bunch of default values. Or, I can: panel = window_create(frame, PANEL, WIN_X, 10, WIN_Y, 20, WIN_COLUMNS, 55, WIN_ROWS, 60, 0); and I get a panel with the parameters I specified. Seems to me that this kind of thing would be great for programming "objects" in intuition, such as windows and screens (for example). It'd be nice to just have a function that opens a window with default values if I specify the minimum number of arguments, but also be able to call the same function with a lot of arguments when I want something other than the default window/screen/etc. that is provided by the function. So, my question really comes down to this: is there anything in Lattice 4.0 similar to varargs() in Unix? Writing "generic" functions such as "CreateWindow()" would sure benefit from a variable number of arguments. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ "It seems to me that you lived your ~ ~ life like a candle in the wind" ~ ~ ~ ~ "Candle In The Wind" ~ ~ by Elton John ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- *********************************************************** * David Geary, Boeing Aerospace Co., Seattle, WA * * (206)773-5249. --I disclaim everything I've ever said--* ***********************************************************