Re: Regular Expression Change

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
jeremy said...

... is there a way to get the Euphoria version number from Eu code? i.e. eu_version() "4.0a3"

No. This was lightly talked about a long time ago. It does need one though.

It's just a simple step from this to allowing libraries to register their version numbers...

-- myinclude.e 
register({2009,1,1,X,Y,Z...}) -- lib passes version sequence in {Y,M,D,A,B,C} format 
   -- when Euphoria encounters a register() statement, it simply adds the include file ("myinclude.e") 
   -- and its associated version number sequence to a special internal list that can be called by apps 
 
-- myproggie.e 
 
require myinclude.e {2009,1,2} -- a special include that helps with version management? 
--include myinclude.e 
require win32lib.e {2008,8,12} -- wouldn't this be nice? 
 
sequence 
   regs = get_registered_libs() 
 
for t=1 to length( regs ) do 
   -- puts(1, ... ) 
end for 
 
-- etc... 

The version sequence can be anything the library user wants to use, or we can make a standard. I like using dates myself, because it's just easier. The {...A,B,C} designations can cover alpha/beta/RC version numbers.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu