llama
- Posted by =?iso-8859-2?B?qWtvZGE=?= <tone.skoda at SIOL.NET> Aug 16, 2000
- 465 views
------=_NextPart_000_0011_01C00781.B446FA60 charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable David, why did you drop the Llama project? I think having more files is good thing. In Euphoria you have to carefully figure out what will be in what file, = because all functions and constants you use must be before you... Really = becomes complicated. Something should be done abut it. Here is the structure of files I think would work: -WinConst.ew file, where all Windows constants would be. It would = include no files, would use no functions and produce no functions, like: = global constant WM_USER=3Dx020943089 -WinStruc.ew file: here would be C structures defined, like: global = constant RECT_left=3Dallot(..), ... file would use functions = allot(),alloted_size() ... -Gdi32.ew, Kernel32.ew and User32.ew, ... files would just link dll = functions, like: global constant xCreateWindow=3DlinkFunc(..) .... , = nothing else, no wrapped functions. That way you avoid linking same = function more times and loading same libraries more times. Then would come other files which would include the above files and = would wrap dll functions which you would actually use in your code. Then you would have files like = ComboBox.ew,Toolbar.ew,Menu.ew,Graphics.ew,... Do you think that could work? What was the problem with Llama? ------=_NextPart_000_0011_01C00781.B446FA60 charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-2" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DVerdana size=3D2>David, why did you drop the Llama=20 project?</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2>I think having more files is good=20 thing.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DVerdana size=3D2>In Euphoria you have to carefully = figure out what=20 will be in what file, because all functions and constants you use must = be before=20 you... Really becomes complicated. Something should be done abut=20 it.</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2>Here is the structure of files I = think =20 would work:</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2></FONT> </DIV> <DIV><FONT face=3DVerdana size=3D2>-WinConst.ew file, where all Windows = constants=20 would be. It would include no files, would use no functions = and produce no=20 functions, like: global constant WM_USER=3Dx020943089</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DVerdana size=3D2>-WinStruc.ew file: here would be C = structures=20 defined, like: global constant RECT_left=3Dallot(..), ... file would use = functions=20 allot(),alloted_size() ...</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DVerdana size=3D2>-Gdi32.ew, Kernel32.ew and User32.ew, = ... files=20 would just link dll functions, like: global constant=20 xCreateWindow=3DlinkFunc(..) .... , nothing else, no wrapped functions. = That way=20 you avoid linking same function more times and loading same libraries = more=20 times.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DVerdana size=3D2>Then would come = other files which would=20 include the above files and would wrap dll functions which you = would=20 actually use in your code.</FONT></DIV> <DIV><FONT face=3DVerdana size=3D2>Then you would have files like=20 <DIV><FONT face=3DVerdana size=3D2>Do you think that could work? = What was the=20 ------=_NextPart_000_0011_01C00781.B446FA60--