FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

November 2 -- Native toJSON, starts/endsWith, more oslib

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Fri Nov 02, 2007 5:40 pm    Post subject: November 2 -- Native toJSON, starts/endsWith, more oslib Reply with quote

Added/Removed
  • Added the native toJSON functions. There are three versions, toJSONc, toJSONw, and toJSONd, for the three kinds of strings. You can also use explicit template instantiation, i.e. toJSON!(wchar) to call the function.
  • Added the native writeJSON functions to parallel the toJSON functions. These write directly to an instance of tango.io.Print.
  • Added string.startsWith, .endsWith, .istartsWith, and .iendsWith.
  • Added os.system, which mimics the C system() call.
  • Added os.getEnv, to get the entire process environment, or single values from it.
  • Added os.dateTime and .dateString, for getting the time and for formatting times.
  • Added os.culture, for getting and setting the culture (which affects, among other things, how dates are formatted).
  • Added the minid.misc module, for various MiniD-specific utilities which just don't fit anywhere else.


Changed
  • Added a namespace parameter to the native loadStatementString function to match the eval function.
  • Removed the UniChar.d file, as I found out Tango has acquired tango.text.Unicode. In the process removed a bunch of unnecessary string duplication in the string lib.


Fixed
  • Somehow forgot to make it so you could assign AAs into MDValues.


Yaay! Ligustah should be happy.


Last edited by JarrettBillingsley on Wed Nov 14, 2007 2:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ligustah



Joined: 21 Oct 2007
Posts: 45
Location: Berlin, Germany

PostPosted: Fri Nov 02, 2007 7:32 pm    Post subject: Reply with quote

Yeah!
Great work.

Mfg Ligustah
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Sat Nov 03, 2007 12:19 pm    Post subject: Reply with quote

Ligustah isn't the only happy one. Smile Great work, especially the os.* additions.
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sun Nov 04, 2007 10:19 am    Post subject: Reply with quote

So -- are you using MiniD in any project, Chris, or are you just a fan? Smile
Back to top
View user's profile Send private message
csauls



Joined: 27 Mar 2004
Posts: 278

PostPosted: Sun Nov 04, 2007 2:10 pm    Post subject: Reply with quote

I have a few things going. A friend and I are experimenting with using it to script a user-extendable utility of his... I've been considering a radical app built in MiniD (a BitTorrent client, actually... radical indeed)... And I'm still just dreaming up uses for it.

I'm a fan. Wink
_________________
Chris Nicholson-Sauls
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sun Nov 04, 2007 6:52 pm    Post subject: Reply with quote

Cool Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group