[OpenBIOS] [PATCH] Adds the get-time word to the dictionary. It returns the current time and date on the stack.

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Sun Oct 7 17:41:45 CEST 2012


On 05/10/12 01:49, Programmingkid wrote:

>> Can you give some more context as to why the get-time word in the rtc
>> node cannot be used?
>
> I was trying out some source code I found in the book "Mac OS X
> Internals" on page 320. When I typed get-time, the word was not found in
> the dictionary. So I thought I could make a contribution by adding this
> word to the dictionary. A little later I found out the word was a part
> of the rtc node. I figure adding this word to the dictionary might help
> the next person who might be reading this book and trying out some of
> the source code in it.

I'm with Tarl on this one; we really want to avoid putting things in the 
global namespace unless there is a very good reason to do so. If it were 
because OS X called the get-time word in a global context then I would 
say we should add it. But if it's just a case of avoiding navigating to 
the rtc node then the patch must be rejected - otherwise we would 
rapidly find ourselves heading down the slippery slope of adding wrapper 
words for many others, and then where would we stop?


ATB,

Mark.



More information about the OpenBIOS mailing list