1. Re: A rant on an Ideal languages
- Posted by "Cuny, David at DSS" <David.Cuny at DSS.CA.GOV> Feb 18, 2000
- 368 views
Joel Crook wrote: > button .hello -text "Hello, world" -command { > puts stdout "Hello, world"; destroy . > > > pack .hello If Euphoria had an eval() statement, it would be a lot easier to create scripting languages in it. I doubt that Robert would consider adding one, though. One thing I'd really like having would be a dynamic include file, such as include_file( sequence fileName ) That way, you could convert the script into a Euphoria file, such as: -- converted script procedure button_command( object self ) puts( 1, "Hello, world!" ) destroy( self ) end procedure constant hello = button() set_text( hello, "Hello, World" ) set_command( hello, routine_id("button_command")) pack( hello ) and then load it dynamically: include_file("script.exw") I'm not convinced that there's much demand for using packing to manage widgets on the Win32 platform. If people convince me otherwise, I'll consider adding it to Win32Lib. Most X-Windows based toolkits (Qt, GTK+) have built-in support for packing. -- David Cuny